Skip to content

Commit

Permalink
test(esl-event-listener): fix incorrect test timeout in "ESLSwipeGest…
Browse files Browse the repository at this point in the history
…ureTarget ignores long - lasting swipe"
  • Loading branch information
ala-n committed Feb 27, 2024
1 parent 281e39e commit 4a27643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/esl-event-listener/test/targets/swipe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ describe('ESLSwipeGestureTarget EventTarget', () => {

test('ESLSwipeGestureTarget ignores long - lasting swipe', async () => {
$el.dispatchEvent(createEvent(START_EVENT, {pageX: 100, pageY: 100}));
await promisifyTimeout(150);
await promisifyTimeout(200);
window.dispatchEvent(createEvent(END_EVENT, {pageX: 210, pageY: 105, target: $el}));
expect(listener).not.toHaveBeenCalled();
});
Expand Down

0 comments on commit 4a27643

Please sign in to comment.