Math.floor the value in the tests

This commit is contained in:
Phil Hughes 2017-08-01 13:13:27 +01:00
parent 8de14be21e
commit b808fdf16b
No known key found for this signature in database
GPG key ID: DB8CE4B3A3EE91AB

View file

@ -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', () => {