diff options
Diffstat (limited to 'spec/javascripts/fly_out_nav_browser_spec.js')
-rw-r--r-- | spec/javascripts/fly_out_nav_browser_spec.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/javascripts/fly_out_nav_browser_spec.js b/spec/javascripts/fly_out_nav_browser_spec.js index f84cee72042..f92994594a9 100644 --- a/spec/javascripts/fly_out_nav_browser_spec.js +++ b/spec/javascripts/fly_out_nav_browser_spec.js @@ -157,7 +157,7 @@ describe('Fly out sidebar navigation', () => { '<div class="sidebar-sub-level-items" style="position: absolute; top: 0; left: 100px; height: 200px;"></div>'; }); - it('shows sub-items after 0ms if no menu is open', done => { + it('shows sub-items after 0ms if no menu is open', (done) => { mouseEnterTopItems(el); expect(getHideSubItemsInterval()).toBe(0); @@ -169,7 +169,7 @@ describe('Fly out sidebar navigation', () => { }); }); - it('shows sub-items after 300ms if a menu is currently open', done => { + it('shows sub-items after 300ms if a menu is currently open', (done) => { documentMouseMove({ clientX: el.getBoundingClientRect().left, clientY: el.getBoundingClientRect().top, @@ -255,8 +255,9 @@ describe('Fly out sidebar navigation', () => { showSubLevelItems(el); expect(subItems.style.transform).toBe( - `translate3d(200px, ${Math.floor(el.getBoundingClientRect().top) - - getHeaderHeight()}px, 0px)`, + `translate3d(200px, ${ + Math.floor(el.getBoundingClientRect().top) - getHeaderHeight() + }px, 0px)`, ); }); |