fix: update test

This commit is contained in:
iamkun 2022-05-06 14:53:40 +08:00
parent 084b17b307
commit 25c449862f

View File

@ -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 /> : Demo;