From 25c449862f04391552f86b5ff1801159be6c7bc3 Mon Sep 17 00:00:00 2001 From: iamkun Date: Fri, 6 May 2022 14:53:40 +0800 Subject: [PATCH] fix: update test --- tests/shared/demoTest.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shared/demoTest.tsx b/tests/shared/demoTest.tsx index 5e8968fcb1..5b7cf92a0c 100644 --- a/tests/shared/demoTest.tsx +++ b/tests/shared/demoTest.tsx @@ -68,7 +68,7 @@ function baseText(doInject: boolean, component: string, options: Options = {}) { testMethod(`cssinjs should not warn in ${file}`, () => { const errSpy = jest.spyOn(console, 'error'); - MockDate.set(moment('2016-11-22').valueOf()); + MockDate.set(dayjs('2016-11-22').valueOf()); let Demo = require(`../.${file}`).default; // eslint-disable-line global-require, import/no-dynamic-require // Inject Trigger status unless skipped Demo = typeof Demo === 'function' ? : Demo;