mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
fix swipe snapshot
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
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);
|
||||
|
Reference in New Issue
Block a user