summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-08-01 13:13:27 +0100
committerPhil Hughes <me@iamphill.com>2017-08-01 13:13:27 +0100
commitb808fdf16b4799e0d2e5b41d70d04f6dd10c040d (patch)
tree38e8283ea692ba96521e2220fb84229acc671f2d
parent8de14be21e4ee9ddf5d5c699a6299387318fd0bd (diff)
downloadgitlab-ce-b808fdf16b4799e0d2e5b41d70d04f6dd10c040d.tar.gz
Math.floor the value in the tests
-rw-r--r--spec/javascripts/fly_out_nav_spec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascripts/fly_out_nav_spec.js b/spec/javascripts/fly_out_nav_spec.js
index 7c530606d61..74775911505 100644
--- a/spec/javascripts/fly_out_nav_spec.js
+++ b/spec/javascripts/fly_out_nav_spec.js
@@ -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', () => {