diff options
Diffstat (limited to 'spec/frontend/batch_comments/components/preview_dropdown_spec.js')
-rw-r--r-- | spec/frontend/batch_comments/components/preview_dropdown_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/batch_comments/components/preview_dropdown_spec.js b/spec/frontend/batch_comments/components/preview_dropdown_spec.js index 5327879f003..bf3bbf4de26 100644 --- a/spec/frontend/batch_comments/components/preview_dropdown_spec.js +++ b/spec/frontend/batch_comments/components/preview_dropdown_spec.js @@ -1,4 +1,4 @@ -import Vue from 'vue'; +import Vue, { nextTick } from 'vue'; import Vuex from 'vuex'; import { shallowMountExtended } from 'helpers/vue_test_utils_helper'; import PreviewDropdown from '~/batch_comments/components/preview_dropdown.vue'; @@ -49,7 +49,7 @@ describe('Batch comments preview dropdown', () => { wrapper.findByTestId('preview-item').vm.$emit('click'); - await Vue.nextTick(); + await nextTick(); expect(setCurrentFileHash).toHaveBeenCalledWith(expect.anything(), 'hash'); expect(scrollToDraft).toHaveBeenCalledWith(expect.anything(), { id: 1, file_hash: 'hash' }); @@ -63,7 +63,7 @@ describe('Batch comments preview dropdown', () => { wrapper.findByTestId('preview-item').vm.$emit('click'); - await Vue.nextTick(); + await nextTick(); expect(scrollToDraft).toHaveBeenCalledWith(expect.anything(), { id: 1 }); }); |