Commit fe9d5660 authored by Illya Klymov's avatar Illya Klymov

Remove incorrect localVue usage

localVue is required only with use method
parent 4372a6c9
import { shallowMount, createLocalVue } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
import { uniqueId } from 'underscore';
import { AccordionItem } from 'ee/vue_shared/components/accordion';
......@@ -12,8 +12,6 @@ jest.mock('ee/vue_shared/components/accordion/accordion_event_bus', () => ({
jest.mock('underscore');
const localVue = createLocalVue();
describe('AccordionItem component', () => {
const mockUniqueId = 'mockUniqueId';
const accordionId = 'accordionID';
......@@ -28,7 +26,6 @@ describe('AccordionItem component', () => {
};
wrapper = shallowMount(AccordionItem, {
localVue,
sync: false,
propsData: {
...defaultPropsData,
......
import { shallowMount, createLocalVue } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
import { Accordion } from 'ee/vue_shared/components/accordion';
import { uniqueId } from 'underscore';
jest.mock('underscore');
const localVue = createLocalVue();
describe('Accordion component', () => {
let wrapper;
const factory = ({ defaultSlot = '' } = {}) => {
wrapper = shallowMount(Accordion, {
localVue,
sync: false,
scopedSlots: {
default: defaultSlot,
......
import { shallowMount, createLocalVue } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
import { GlLoadingIcon } from '@gitlab/ui';
import EpicsSelectBase from 'ee/vue_shared/components/sidebar/epics_select/base.vue';
......@@ -32,7 +32,6 @@ describe('EpicsSelect', () => {
setFixtures('<div class="flash-container"></div>');
wrapper = shallowMount(EpicsSelectBase, {
store,
localVue: createLocalVue(),
propsData: {
canEdit: true,
blockTitle: 'Epic',
......
import { createLocalVue, shallowMount } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
import { GlButton } from '@gitlab/ui';
import DropdownSearchInput from 'ee/vue_shared/components/sidebar/epics_select/dropdown_search_input.vue';
import Icon from '~/vue_shared/components/icon.vue';
const createComponent = () => {
const localVue = createLocalVue();
return shallowMount(DropdownSearchInput, {
localVue,
const createComponent = () =>
shallowMount(DropdownSearchInput, {
directives: {
/**
* We don't want any observers
......@@ -18,7 +15,6 @@ const createComponent = () => {
autofocusonshow: {},
},
});
};
describe('EpicsSelect', () => {
describe('DropdownSearchInput', () => {
......
import { mount, createLocalVue } from '@vue/test-utils';
import { mount } from '@vue/test-utils';
import { GlEmptyState } from '@gitlab/ui';
import MockAdapter from 'axios-mock-adapter';
import { TEST_HOST } from 'helpers/test_constants';
......@@ -8,8 +8,6 @@ import createStore from 'ee/security_dashboard/store';
import { trimText } from 'helpers/text_helper';
import axios from '~/lib/utils/axios_utils';
const localVue = createLocalVue();
const vulnerabilitiesEndpoint = `${TEST_HOST}/vulnerabilities`;
const vulnerabilitiesSummaryEndpoint = `${TEST_HOST}/vulnerabilities_summary`;
......@@ -22,7 +20,6 @@ describe('Card security reports app', () => {
const createComponent = props => {
wrapper = mount(CardSecurityDashboardApp, {
localVue,
store: createStore(),
sync: false,
attachToDocument: true,
......
import { createLocalVue, mount } from '@vue/test-utils';
import { mount } from '@vue/test-utils';
import createState from 'ee/vue_shared/security_reports/store/state';
import VulnerabilityDetails from 'ee/vue_shared/security_reports/components/vulnerability_details.vue';
import SeverityBadge from 'ee/vue_shared/security_reports/components/severity_badge.vue';
......@@ -7,12 +7,10 @@ import { TEST_HOST } from 'helpers/test_constants';
describe('VulnerabilityDetails component', () => {
let wrapper;
const localVue = createLocalVue();
const componentFactory = (options = {}) => {
wrapper = mount(localVue.extend(VulnerabilityDetails), {
wrapper = mount(VulnerabilityDetails, {
...options,
localVue,
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