Skip to content

Commit

Permalink
Update swipe.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Oct 11, 2021
1 parent fd262dc commit 1e5c046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/tests/unit/util/swipe.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ describe('Swipe', () => {
window.PointerEvent = originWinPointerEvent
}

// Headless browser does not support touch events, so need to fake it
// to test that touch events are add properly.
// The headless browser does not support touch events, so we need to fake it
// in order to test that touch events are added properly
const defineDocumentElementOntouchstart = () => {
document.documentElement.ontouchstart = noop
}
Expand Down

0 comments on commit 1e5c046

Please sign in to comment.