diff options
Diffstat (limited to 'spec/frontend/code_navigation/components/app_spec.js')
-rw-r--r-- | spec/frontend/code_navigation/components/app_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/code_navigation/components/app_spec.js b/spec/frontend/code_navigation/components/app_spec.js index 798f3bc0ee2..9306c15e676 100644 --- a/spec/frontend/code_navigation/components/app_spec.js +++ b/spec/frontend/code_navigation/components/app_spec.js @@ -1,15 +1,15 @@ -import { shallowMount, createLocalVue } from '@vue/test-utils'; +import { shallowMount } from '@vue/test-utils'; +import Vue from 'vue'; import Vuex from 'vuex'; import App from '~/code_navigation/components/app.vue'; import Popover from '~/code_navigation/components/popover.vue'; import createState from '~/code_navigation/store/state'; -const localVue = createLocalVue(); const fetchData = jest.fn(); const showDefinition = jest.fn(); let wrapper; -localVue.use(Vuex); +Vue.use(Vuex); function factory(initialState = {}) { const store = new Vuex.Store({ @@ -24,7 +24,7 @@ function factory(initialState = {}) { }, }); - wrapper = shallowMount(App, { store, localVue }); + wrapper = shallowMount(App, { store }); } describe('Code navigation app component', () => { |