mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
13 lines
272 B
JavaScript
13 lines
272 B
JavaScript
import Demo from '../demo';
|
|
import demoTest from '../../../test/demo-test';
|
|
|
|
function mockGetBoundingClientRect(vertical) {
|
|
Element.prototype.getBoundingClientRect = jest.fn(() => ({
|
|
width: 100,
|
|
height: 100
|
|
}));
|
|
}
|
|
|
|
mockGetBoundingClientRect();
|
|
demoTest(Demo);
|