Math.floor the value in the tests
This commit is contained in:
parent
8de14be21e
commit
b808fdf16b
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ describe('Fly out sidebar navigation', () => {
|
|||
|
||||
expect(
|
||||
subItems.style.transform,
|
||||
).toBe(`translate3d(0px, ${el.getBoundingClientRect().top}px, 0px)`);
|
||||
).toBe(`translate3d(0px, ${Math.floor(el.getBoundingClientRect().top)}px, 0px)`);
|
||||
});
|
||||
|
||||
it('sets is-above when element is above', () => {
|
||||
|
|
Loading…
Reference in a new issue