Skip to content
Snippets Groups Projects
Unverified Commit b808fdf1 authored by Phil Hughes's avatar Phil Hughes
Browse files

Math.floor the value in the tests

parent 8de14be2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment