diff --git a/packages/amis-formula/__tests__/async-fomula.test.ts b/packages/amis-formula/__tests__/async-fomula.test.ts index 9695de7cc..2ef6b3545 100644 --- a/packages/amis-formula/__tests__/async-fomula.test.ts +++ b/packages/amis-formula/__tests__/async-fomula.test.ts @@ -342,9 +342,9 @@ test('formula:date', async () => { 'CONCATENATE(STARTOF("2023-02-28", "day"), "," ,ENDOF("2023-02-28", "day"))' ) ).toBe( - `${moment('2023-02-28').startOf('day').toDate()},${moment('2023-02-28') + `${moment('2023-02-28').startOf('day').format()},${moment('2023-02-28') .endOf('day') - .toDate()}` + .format()}` ); expect( await evalFormual(