We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f46856 commit 88d0ac6Copy full SHA for 88d0ac6
tests/touch.test.js
@@ -86,14 +86,15 @@ describe('List.Touch', () => {
86
return wrapper.find('.rc-virtual-list-holder').instance();
87
}
88
89
+ const preventDefault = jest.fn();
90
+
91
act(() => {
92
// start
93
const touchEvent = new Event('touchstart');
94
touchEvent.touches = [{ pageY: 500 }];
95
getElement().dispatchEvent(touchEvent);
96
97
// move
- const preventDefault = jest.fn();
98
const moveEvent = new Event('touchmove');
99
moveEvent.touches = [{ pageY: 0 }];
100
moveEvent.preventDefault = preventDefault;
0 commit comments