Skip to content

Commit

Permalink
fix: offset in second test
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-combarnous committed Jun 15, 2022
1 parent ff9c842 commit 58102a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/common.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ describe('Common', () => {
/>,
);
expect(container2.getElementsByClassName('rc-slider-dot-active')[1]).toHaveStyle(
'left: 40%; transform: translateX(-50%); width: 30px',
'left: 30%; transform: translateX(-50%); width: 30px',
);
expect(container2.getElementsByClassName('rc-slider-dot-active')[2]).toHaveStyle(
'left: 50%; transform: translateX(-50%); width: 40px',
'left: 40%; transform: translateX(-50%); width: 40px',
);
});

Expand Down

0 comments on commit 58102a1

Please sign in to comment.