diff options
Diffstat (limited to 'spec/frontend/notes/mixins/discussion_navigation_spec.js')
-rw-r--r-- | spec/frontend/notes/mixins/discussion_navigation_spec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/notes/mixins/discussion_navigation_spec.js b/spec/frontend/notes/mixins/discussion_navigation_spec.js index d203435e7bf..4114df618e5 100644 --- a/spec/frontend/notes/mixins/discussion_navigation_spec.js +++ b/spec/frontend/notes/mixins/discussion_navigation_spec.js @@ -42,6 +42,7 @@ describe('Discussion navigation mixin', () => { ); jest.spyOn(utils, 'scrollToElementWithContext'); + jest.spyOn(utils, 'scrollToElement'); expandDiscussion = jest.fn(); const { actions, ...notesRest } = notesModule(); @@ -133,7 +134,7 @@ describe('Discussion navigation mixin', () => { }); it('scrolls to element', () => { - expect(utils.scrollToElementWithContext).toHaveBeenCalledWith( + expect(utils.scrollToElement).toHaveBeenCalledWith( findDiscussion('div.discussion', expected), ); }); @@ -200,7 +201,7 @@ describe('Discussion navigation mixin', () => { }); it('scrolls to discussion', () => { - expect(utils.scrollToElementWithContext).toHaveBeenCalledWith( + expect(utils.scrollToElement).toHaveBeenCalledWith( findDiscussion('div.discussion', expected), ); }); |