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
Pipeline #108011498 passed with stages
in 67 minutes and 45 seconds
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 createStore from 'ee/dependencies/store';
import { addListType } from 'ee/dependencies/store/utils';
......@@ -25,8 +25,6 @@ describe('DependenciesApp component', () => {
};
const factory = (props = basicAppProps) => {
const localVue = createLocalVue();
store = createStore();
addListType(store, DEPENDENCY_LIST_TYPES.vulnerable);
jest.spyOn(store, 'dispatch').mockImplementation();
......@@ -35,7 +33,6 @@ describe('DependenciesApp component', () => {
const stubs = Object.keys(DependenciesApp.components).filter(canBeStubbed);
wrapper = mount(DependenciesApp, {
localVue,
store,
sync: false,
attachToDocument: true,
......
......@@ -17,7 +17,7 @@ describe('DependenciesActions component', () => {
store = createStore();
jest.spyOn(store, 'dispatch').mockImplementation();
wrapper = shallowMount(localVue.extend(DependenciesActions), {
wrapper = shallowMount(DependenciesActions, {
...options,
localVue,
store,
......
......@@ -11,7 +11,7 @@ describe('DependenciesTableRow component', () => {
const factory = ({ propsData, ...options } = {}) => {
const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependenciesTableRow), {
wrapper = shallowMount(DependenciesTableRow, {
...options,
localVue,
sync: false,
......
......@@ -9,7 +9,7 @@ describe('DependenciesTable component', () => {
const factory = ({ propsData, ...options } = {}) => {
const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependenciesTable), {
wrapper = shallowMount(DependenciesTable, {
...options,
localVue,
sync: false,
......
......@@ -18,7 +18,7 @@ describe('DependencyLicenseLinks component', () => {
const licenses = addUrls(createLicenses(numLicenses), numLicensesWithUrl);
const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependenciesLicenseLinks), {
wrapper = shallowMount(DependenciesLicenseLinks, {
sync: false,
attachToDocument: true,
localVue,
......
......@@ -8,7 +8,7 @@ describe('DependencyListIncompleteAlert component', () => {
const factory = (options = {}) => {
const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependencyListIncompleteAlert), {
wrapper = shallowMount(DependencyListIncompleteAlert, {
localVue,
sync: false,
...options,
......
......@@ -13,7 +13,7 @@ describe('DependencyListJobFailedAlert component', () => {
const factory = (options = {}) => {
const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependencyListJobFailedAlert), {
wrapper = shallowMount(DependencyListJobFailedAlert, {
localVue,
sync: false,
...options,
......
......@@ -9,7 +9,7 @@ describe('DependencyVulnerability component', () => {
const factory = ({ propsData, ...options } = {}) => {
const localVue = createLocalVue();
wrapper = shallowMount(localVue.extend(DependencyVulnerability), {
wrapper = shallowMount(DependencyVulnerability, {
...options,
localVue,
sync: false,
......
......@@ -16,7 +16,7 @@ describe('PaginatedDependenciesTable component', () => {
store = createStore();
wrapper = shallowMount(localVue.extend(PaginatedDependenciesTable), {
wrapper = shallowMount(PaginatedDependenciesTable, {
localVue,
store,
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