Skip to content

Commit b6c7f3f

Browse files
committed
test(tap): fix tap tests from tolerance change
1 parent 894e429 commit b6c7f3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/utils/tap.unit.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,16 +572,16 @@ describe('Ionic Tap', function() {
572572
it('Should tapHasPointerMoved true if greater than or equal to release tolerance', function() {
573573
tapPointerStart = { x: 100, y: 100 };
574574

575-
var s = tapHasPointerMoved({ clientX: 111, clientY: 100, target: document.createElement('button') });
575+
var s = tapHasPointerMoved({ clientX: 113, clientY: 100, target: document.createElement('button') });
576576
expect(s).toEqual(true);
577577

578-
s = tapHasPointerMoved({ clientX: 89, clientY: 100, target: document.createElement('button') });
578+
s = tapHasPointerMoved({ clientX: 87, clientY: 100, target: document.createElement('button') });
579579
expect(s).toEqual(true);
580580

581-
s = tapHasPointerMoved({ clientX: 100, clientY: 109, target: document.createElement('button') });
581+
s = tapHasPointerMoved({ clientX: 100, clientY: 113, target: document.createElement('button') });
582582
expect(s).toEqual(true);
583583

584-
s = tapHasPointerMoved({ clientX: 100, clientY: 91, target: document.createElement('button') });
584+
s = tapHasPointerMoved({ clientX: 100, clientY: 87, target: document.createElement('button') });
585585
expect(s).toEqual(true);
586586

587587
s = tapHasPointerMoved({ clientX: 100, clientY: 200, target: document.createElement('button') });

0 commit comments

Comments
 (0)