Skip to content

Commit

Permalink
removed useless code in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianDavideConte committed Jan 17, 2024
1 parent 19613aa commit 433ba17
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions cypress/e2e/calcScrollbarsDimensions-tests.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ describe("calcScrollbarsDimensions", function () {
const _elementWithScrollbarOnTheYAxisOriginalScrollPos = _getCurrentScrollPos(_elementWithScrollbarOnTheYAxis);
const _elementWithScrollbarOnTheXYAxesOriginalScrollPos = _getCurrentScrollPos(_elementWithScrollbarOnTheXYAxes);

uss.setPageScroller(_pageScroller);

//Test the scrollbars' dimensions of document.head's elements.
expect(constants.arraysAreEqual(uss.calcScrollbarsDimensions(_head), [0, 0])).to.be.true;
Array.from(_head.children).forEach(el => expect(constants.arraysAreEqual(uss.calcScrollbarsDimensions(el), [0, 0])).to.be.true);
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/calcXScrollbarDimension-tests.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ describe("calcXScrollbarDimension", function () {
const _elementWithScrollbarOnTheYAxisOriginalScrollPos = _getCurrentScrollPos(_elementWithScrollbarOnTheYAxis);
const _elementWithScrollbarOnTheXYAxesOriginalScrollPos = _getCurrentScrollPos(_elementWithScrollbarOnTheXYAxes);

uss.setPageScroller(_pageScroller);

//Test the x-scrollbar's dimension of document.head's elements.
expect(uss.calcXScrollbarDimension(_head)).to.equal(0);
Array.from(_head.children).forEach(el => expect(uss.calcXScrollbarDimension(el)).to.equal(0));
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/calcYScrollbarDimension-tests.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ describe("calcYScrollbarDimension", function () {
const _elementWithScrollbarOnTheYAxisOriginalScrollPos = _getCurrentScrollPos(_elementWithScrollbarOnTheYAxis);
const _elementWithScrollbarOnTheXYAxesOriginalScrollPos = _getCurrentScrollPos(_elementWithScrollbarOnTheXYAxes);

uss.setPageScroller(_pageScroller);

//Test the y-scrollbar's dimension of document.head's elements.
expect(uss.calcYScrollbarDimension(_head)).to.equal(0);
Array.from(_head.children).forEach(el => expect(uss.calcYScrollbarDimension(el)).to.equal(0));
Expand Down

0 comments on commit 433ba17

Please sign in to comment.