Commit 0125b47a authored by Vitaly Slobodin's avatar Vitaly Slobodin

Remove localVue from storage counter specs

parent 4d107898
import { shallowMount, createLocalVue } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import StorageApp from 'ee/storage_counter/components/app.vue'; import StorageApp from 'ee/storage_counter/components/app.vue';
import Project from 'ee/storage_counter/components/project.vue'; import Project from 'ee/storage_counter/components/project.vue';
import { projects, withRootStorageStatistics } from '../data'; import { projects, withRootStorageStatistics } from '../data';
const localVue = createLocalVue();
describe('Storage counter app', () => { describe('Storage counter app', () => {
let wrapper; let wrapper;
...@@ -17,10 +15,9 @@ describe('Storage counter app', () => { ...@@ -17,10 +15,9 @@ describe('Storage counter app', () => {
}, },
}; };
wrapper = shallowMount(localVue.extend(StorageApp), { wrapper = shallowMount(StorageApp, {
propsData: { namespacePath: 'h5bp', helpPagePath: 'help' }, propsData: { namespacePath: 'h5bp', helpPagePath: 'help' },
mocks: { $apollo }, mocks: { $apollo },
localVue,
}); });
} }
......
import { shallowMount, createLocalVue } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import { GlButton } from '@gitlab/ui'; import { GlButton } from '@gitlab/ui';
import Project from 'ee/storage_counter/components/project.vue'; import Project from 'ee/storage_counter/components/project.vue';
import ProjectAvatar from '~/vue_shared/components/project_avatar/default.vue'; import ProjectAvatar from '~/vue_shared/components/project_avatar/default.vue';
...@@ -22,14 +22,11 @@ const data = { ...@@ -22,14 +22,11 @@ const data = {
}, },
}; };
const localVue = createLocalVue();
function factory(project) { function factory(project) {
wrapper = shallowMount(localVue.extend(Project), { wrapper = shallowMount(Project, {
propsData: { propsData: {
project, project,
}, },
localVue,
}); });
} }
......
import { shallowMount, createLocalVue } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import StorageRow from 'ee/storage_counter/components/storage_row.vue'; import StorageRow from 'ee/storage_counter/components/storage_row.vue';
import { numberToHumanSize } from '~/lib/utils/number_utils'; import { numberToHumanSize } from '~/lib/utils/number_utils';
...@@ -7,15 +7,13 @@ const data = { ...@@ -7,15 +7,13 @@ const data = {
name: 'LFS Package', name: 'LFS Package',
value: 1293346, value: 1293346,
}; };
const localVue = createLocalVue();
function factory({ name, value }) { function factory({ name, value }) {
wrapper = shallowMount(localVue.extend(StorageRow), { wrapper = shallowMount(StorageRow, {
propsData: { propsData: {
name, name,
value, value,
}, },
localVue,
}); });
} }
......
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