Commit b808fdf1 authored by Phil Hughes's avatar Phil Hughes

Math.floor the value in the tests

parent 8de14be2
...@@ -117,7 +117,7 @@ describe('Fly out sidebar navigation', () => { ...@@ -117,7 +117,7 @@ describe('Fly out sidebar navigation', () => {
expect( expect(
subItems.style.transform, 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', () => { it('sets is-above when element is above', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment