Commit a1104148 authored by Illya Klymov's avatar Illya Klymov

Remove incorrect localVue usage

localVue is required only with use method
parent 4372a6c9
...@@ -14,7 +14,7 @@ describe('ee/ide/components/ide_status_list', () => { ...@@ -14,7 +14,7 @@ describe('ee/ide/components/ide_status_list', () => {
const createComponent = () => { const createComponent = () => {
store = createStore(); store = createStore();
wrapper = mount(localVue.extend(IdeStatusList), { wrapper = mount(IdeStatusList, {
localVue, localVue,
sync: false, sync: false,
store, store,
......
...@@ -20,7 +20,7 @@ describe('IDE EERightPane', () => { ...@@ -20,7 +20,7 @@ describe('IDE EERightPane', () => {
}, },
}); });
wrapper = shallowMount(localVue.extend(EERightPane), { localVue, store }); wrapper = shallowMount(EERightPane, { localVue, store });
}; };
beforeEach(() => { beforeEach(() => {
......
...@@ -25,7 +25,7 @@ describe('EE IDE TerminalSession', () => { ...@@ -25,7 +25,7 @@ describe('EE IDE TerminalSession', () => {
}, },
}); });
wrapper = shallowMount(localVue.extend(TerminalSession), { wrapper = shallowMount(TerminalSession, {
localVue, localVue,
store, store,
...options, ...options,
......
import { createLocalVue, shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import TerminalControls from 'ee/ide/components/terminal/terminal_controls.vue'; import TerminalControls from 'ee/ide/components/terminal/terminal_controls.vue';
import ScrollButton from '~/ide/components/jobs/detail/scroll_button.vue'; import ScrollButton from '~/ide/components/jobs/detail/scroll_button.vue';
const localVue = createLocalVue();
describe('EE IDE TerminalControls', () => { describe('EE IDE TerminalControls', () => {
let wrapper; let wrapper;
let buttons; let buttons;
const factory = (options = {}) => { const factory = (options = {}) => {
wrapper = shallowMount(localVue.extend(TerminalControls), { wrapper = shallowMount(TerminalControls, {
localVue,
...options, ...options,
}); });
......
...@@ -15,7 +15,7 @@ describe('ee/ide/components/terminal_sync/terminal_sync_status_safe', () => { ...@@ -15,7 +15,7 @@ describe('ee/ide/components/terminal_sync/terminal_sync_status_safe', () => {
state: {}, state: {},
}); });
wrapper = shallowMount(localVue.extend(TerminalSyncStatusSafe), { wrapper = shallowMount(TerminalSyncStatusSafe, {
localVue, localVue,
sync: false, sync: false,
store, store,
......
...@@ -35,7 +35,7 @@ describe('ee/ide/components/terminal_sync/terminal_sync_status', () => { ...@@ -35,7 +35,7 @@ describe('ee/ide/components/terminal_sync/terminal_sync_status', () => {
}, },
}); });
wrapper = shallowMount(localVue.extend(TerminalSyncStatus), { wrapper = shallowMount(TerminalSyncStatus, {
attachToDocument: true, attachToDocument: true,
localVue, localVue,
sync: false, sync: false,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment