Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
test: update test and hello 2025 (#4401)
Wenzhao Huc85d2317342b
diff --git a/packages/engine-formula/src/functions/date/datevalue/__tests__/index.spec.ts b/packages/engine-formula/src/functions/date/datevalue/__tests__/index.spec.tsindex 04d9384d50..8ca6598b33 100644--- a/packages/engine-formula/src/functions/date/datevalue/__tests__/index.spec.ts+++ b/packages/engine-formula/src/functions/date/datevalue/__tests__/index.spec.ts@@ -16,12 +16,12 @@import { describe, expect, it } from 'vitest';-import { FUNCTION_NAMES_DATE } from '../../function-names';-import { Datevalue } from '../index';-import { BooleanValueObject, NullValueObject, NumberValueObject, StringValueObject } from '../../../../engine/value-object/primitive-object';+import { ErrorType } from '../../../../basics/error-type';import { ArrayValueObject, transformToValue, transformToValueObject } from '../../../../engine/value-object/array-value-object';import { ErrorValueObject } from '../../../../engine/value-object/base-value-object';-import { ErrorType } from '../../../../basics/error-type';+import { BooleanValueObject, NullValueObject, NumberValueObject, StringValueObject } from '../../../../engine/value-object/primitive-object';+import { FUNCTION_NAMES_DATE } from '../../function-names';+import { Datevalue } from '../index';describe('Test datevalue function', () => {const testFunction = new Datevalue(FUNCTION_NAMES_DATE.DATEVALUE);@@ -34,7 +34,7 @@ describe('Test datevalue function', () => {const dateText2 = StringValueObject.create('5-Jul');const result2 = testFunction.calculate(dateText2);- expect(result2.getValue()).toStrictEqual(45478);+ expect(result2.getValue()).toStrictEqual(45843); // NOTE: this should be updated annuallyconst dateText3 = StringValueObject.create('2020-01-02 13:14:15');const result3 = testFunction.calculate(dateText3);