From ec56f7e1da4ecece434214693fdf5ff92a367c38 Mon Sep 17 00:00:00 2001 From: liaoxuezhi <2698393+2betop@users.noreply.github.com> Date: Thu, 21 Nov 2024 16:31:06 +0800 Subject: [PATCH] chore: test case update --- packages/amis-formula/__tests__/async-fomula.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(