未验证 提交 b808fdf1 编写于 作者: P Phil Hughes

Math.floor the value in the tests

上级 8de14be2
......@@ -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', () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册