Commit 428d07da authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'xanf-remove-localVue-195844' into 'master'

Remove incorrect localVue usage in ee/spec/frontend/dependencies

Closes #195844

See merge request gitlab-org/gitlab!22616
parents 398087f2 399ec694
import { GlBadge, GlEmptyState, GlLoadingIcon, GlTab, GlLink } from '@gitlab/ui'; import { GlBadge, GlEmptyState, GlLoadingIcon, GlTab, GlLink } from '@gitlab/ui';
import { createLocalVue, mount } from '@vue/test-utils'; import { mount } from '@vue/test-utils';
import { TEST_HOST } from 'helpers/test_constants'; import { TEST_HOST } from 'helpers/test_constants';
import createStore from 'ee/dependencies/store'; import createStore from 'ee/dependencies/store';
import { addListType } from 'ee/dependencies/store/utils'; import { addListType } from 'ee/dependencies/store/utils';
...@@ -25,8 +25,6 @@ describe('DependenciesApp component', () => { ...@@ -25,8 +25,6 @@ describe('DependenciesApp component', () => {
}; };
const factory = (props = basicAppProps) => { const factory = (props = basicAppProps) => {
const localVue = createLocalVue();
store = createStore(); store = createStore();
addListType(store, DEPENDENCY_LIST_TYPES.vulnerable); addListType(store, DEPENDENCY_LIST_TYPES.vulnerable);
jest.spyOn(store, 'dispatch').mockImplementation(); jest.spyOn(store, 'dispatch').mockImplementation();
...@@ -35,7 +33,6 @@ describe('DependenciesApp component', () => { ...@@ -35,7 +33,6 @@ describe('DependenciesApp component', () => {
const stubs = Object.keys(DependenciesApp.components).filter(canBeStubbed); const stubs = Object.keys(DependenciesApp.components).filter(canBeStubbed);
wrapper = mount(DependenciesApp, { wrapper = mount(DependenciesApp, {
localVue,
store, store,
sync: false, sync: false,
attachToDocument: true, attachToDocument: true,
......
...@@ -17,7 +17,7 @@ describe('DependenciesActions component', () => { ...@@ -17,7 +17,7 @@ describe('DependenciesActions component', () => {
store = createStore(); store = createStore();
jest.spyOn(store, 'dispatch').mockImplementation(); jest.spyOn(store, 'dispatch').mockImplementation();
wrapper = shallowMount(localVue.extend(DependenciesActions), { wrapper = shallowMount(DependenciesActions, {
...options, ...options,
localVue, localVue,
store, store,
......
...@@ -11,7 +11,7 @@ describe('DependenciesTableRow component', () => { ...@@ -11,7 +11,7 @@ describe('DependenciesTableRow component', () => {
const factory = ({ propsData, ...options } = {}) => { const factory = ({ propsData, ...options } = {}) => {
const localVue = createLocalVue(); const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependenciesTableRow), { wrapper = shallowMount(DependenciesTableRow, {
...options, ...options,
localVue, localVue,
sync: false, sync: false,
......
...@@ -9,7 +9,7 @@ describe('DependenciesTable component', () => { ...@@ -9,7 +9,7 @@ describe('DependenciesTable component', () => {
const factory = ({ propsData, ...options } = {}) => { const factory = ({ propsData, ...options } = {}) => {
const localVue = createLocalVue(); const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependenciesTable), { wrapper = shallowMount(DependenciesTable, {
...options, ...options,
localVue, localVue,
sync: false, sync: false,
......
...@@ -18,7 +18,7 @@ describe('DependencyLicenseLinks component', () => { ...@@ -18,7 +18,7 @@ describe('DependencyLicenseLinks component', () => {
const licenses = addUrls(createLicenses(numLicenses), numLicensesWithUrl); const licenses = addUrls(createLicenses(numLicenses), numLicensesWithUrl);
const localVue = createLocalVue(); const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependenciesLicenseLinks), { wrapper = shallowMount(DependenciesLicenseLinks, {
sync: false, sync: false,
attachToDocument: true, attachToDocument: true,
localVue, localVue,
......
...@@ -8,7 +8,7 @@ describe('DependencyListIncompleteAlert component', () => { ...@@ -8,7 +8,7 @@ describe('DependencyListIncompleteAlert component', () => {
const factory = (options = {}) => { const factory = (options = {}) => {
const localVue = createLocalVue(); const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependencyListIncompleteAlert), { wrapper = shallowMount(DependencyListIncompleteAlert, {
localVue, localVue,
sync: false, sync: false,
...options, ...options,
......
...@@ -13,7 +13,7 @@ describe('DependencyListJobFailedAlert component', () => { ...@@ -13,7 +13,7 @@ describe('DependencyListJobFailedAlert component', () => {
const factory = (options = {}) => { const factory = (options = {}) => {
const localVue = createLocalVue(); const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependencyListJobFailedAlert), { wrapper = shallowMount(DependencyListJobFailedAlert, {
localVue, localVue,
sync: false, sync: false,
...options, ...options,
......
...@@ -9,7 +9,7 @@ describe('DependencyVulnerability component', () => { ...@@ -9,7 +9,7 @@ describe('DependencyVulnerability component', () => {
const factory = ({ propsData, ...options } = {}) => { const factory = ({ propsData, ...options } = {}) => {
const localVue = createLocalVue(); const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependencyVulnerability), { wrapper = shallowMount(DependencyVulnerability, {
...options, ...options,
localVue, localVue,
sync: false, sync: false,
......
...@@ -16,7 +16,7 @@ describe('PaginatedDependenciesTable component', () => { ...@@ -16,7 +16,7 @@ describe('PaginatedDependenciesTable component', () => {
store = createStore(); store = createStore();
wrapper = shallowMount(localVue.extend(PaginatedDependenciesTable), { wrapper = shallowMount(PaginatedDependenciesTable, {
localVue, localVue,
store, store,
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