Commit 399ec694 authored by Illya Klymov's avatar Illya Klymov

Remove incorrect localVue usage

localVue is required only with use method
parent 4372a6c9
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