mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
fix: update test
This commit is contained in:
parent
084b17b307
commit
25c449862f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user