File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ import { mount } from '@vue/test-utils';
3
3
import MockDate from 'mockdate' ;
4
4
import dayjs from 'dayjs' ;
5
5
import antd from 'ant-design-vue' ;
6
- import utc from 'dayjs/plugin/utc' ;
7
6
import { sleep } from '../utils' ;
8
7
9
- dayjs . extend ( utc ) ;
10
8
export default function demoTest ( component , options = { } ) {
11
9
const suffix = options . suffix || 'vue' ;
12
10
const files = glob . sync ( `./components/${ component } /demo/*.${ suffix } ` ) ;
@@ -20,7 +18,7 @@ export default function demoTest(component, options = {}) {
20
18
testMethod = test . skip ;
21
19
}
22
20
testMethod ( `renders ${ file } correctly` , async ( ) => {
23
- MockDate . set ( dayjs . utc ( '2016-11-22 ' ) . valueOf ( ) ) ;
21
+ MockDate . set ( dayjs ( '2016-11-22T00:00:00Z ' ) . valueOf ( ) ) ;
24
22
const demo = require ( `../.${ file } ` ) . default || require ( `../.${ file } ` ) ;
25
23
document . body . innerHTML = '' ;
26
24
const wrapper = mount ( demo , { global : { plugins : [ antd ] } , attachTo : document . body } ) ;
You can’t perform that action at this time.
0 commit comments