Skip to content

Commit

Permalink
chore: add simulate swipe add touchmove
Browse files Browse the repository at this point in the history
  • Loading branch information
HelKyle committed Sep 8, 2022
1 parent 97ff4bd commit a212ea0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/action-sheet/__test__/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ describe('MenuGrid', () => {
}
async function simulateSwipe(ele, dir) {
await triggerTouchEvent('touchstart', ele, 0)
await triggerTouchEvent('touchmove', ele, 0)
const distance = 51
await triggerTouchEvent('touchend', ele, dir === 'prev' ? distance : -distance)
}
Expand Down

0 comments on commit a212ea0

Please sign in to comment.