Skip to content

Commit

Permalink
test(scroll): make test not so precise
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipata committed Sep 17, 2021
1 parent 61d3989 commit 445246b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/scroll/scroll-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,7 @@ QUnit.test(testId_57, function (assert) {
scrollbarPixelContentRatio = (self.vhScroll().height() / (contentHeight - scrollContainerHeight)) * (vTrackHeight - vDragHeight),
expectedPosY = self.getTransform3dValueY(self.vDrag(self.vhScrollId));

assert.equal(expectedPosY.toFixed(4), scrollbarPixelContentRatio.toFixed(4), "igScroll did not scroll properly");
assert.equal(expectedPosY.toFixed(3), scrollbarPixelContentRatio.toFixed(3), "igScroll did not scroll properly");
self.vhScroll().remove();
done();
}).catch(function (er) {
Expand Down

0 comments on commit 445246b

Please sign in to comment.