mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
18 lines
338 B
JavaScript
18 lines
338 B
JavaScript
import Demo from '../demo';
|
|
import demoTest from '../../../test/demo-test';
|
|
import { mockGetBoundingClientRect } from '../../../test/utils';
|
|
|
|
let restore;
|
|
|
|
demoTest(Demo, {
|
|
hookBeforeTest: () => {
|
|
restore = mockGetBoundingClientRect({
|
|
width: 100,
|
|
height: 100
|
|
});
|
|
},
|
|
hookAfterTest: () => {
|
|
restore();
|
|
}
|
|
});
|