[build] optimize demo test

This commit is contained in:
陈嘉涵
2019-05-08 15:52:32 +08:00
parent c92791e8da
commit 782215c94c
42 changed files with 1313 additions and 428 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ test('touch and scroll to anchor', () => {
triggerDrag(sidebar, 100, 0);
expect(fn).toHaveBeenCalledTimes(0);
// vertiacl drag
// vertical drag
trigger(sidebar, 'touchstart', 0, 0);
trigger(sidebar, 'touchmove', 0, 100);
trigger(sidebar, 'touchmove', 0, 200);