Commit 07de12a9 authored by Natalia Tepluhina's avatar Natalia Tepluhina

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

Remove incorrect localVue usage in ee/spec

Closes #196067

See merge request gitlab-org/gitlab!22703
parents b00f74fc e10da575
import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import { shallowMount, createLocalVue } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
import { GlModal } from '@gitlab/ui';
import AlertsServiceForm from 'ee/alerts_service_settings/components/alerts_service_form.vue';
import ToggleButton from '~/vue_shared/components/toggle_button.vue';
......@@ -8,8 +8,6 @@ import createFlash from '~/flash';
jest.mock('~/flash');
const localVue = createLocalVue();
const defaultProps = {
initialAuthorizationKey: 'abcedfg123',
formPath: 'http://invalid',
......@@ -24,7 +22,6 @@ describe('AlertsServiceForm', () => {
const createComponent = (props = defaultProps, { methods } = {}) => {
wrapper = shallowMount(AlertsServiceForm, {
localVue,
propsData: {
...defaultProps,
...props,
......
import { createLocalVue, mount } from '@vue/test-utils';
import { mount } from '@vue/test-utils';
import Environments from 'ee/clusters/components/environments.vue';
import { GlTable, GlEmptyState, GlLoadingIcon } from '@gitlab/ui';
import Icon from '~/vue_shared/components/icon.vue';
import environments from './mock_data';
const localVue = createLocalVue();
describe('Environments', () => {
let wrapper;
let propsData;
......@@ -21,7 +19,6 @@ describe('Environments', () => {
wrapper = mount(Environments, {
propsData,
localVue,
});
});
......@@ -44,7 +41,6 @@ describe('Environments', () => {
beforeAll(() => {
wrapper = mount(Environments, {
propsData: { ...propsData, environments },
localVue,
stubs: { deploymentInstance: '<div class="js-deployment-instance"></div>' },
sync: false,
});
......
import { shallowMount, createLocalVue } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
import { TEST_HOST } from 'spec/test_constants';
import createStore from '~/notes/stores';
import noteActions from '~/notes/components/note_actions.vue';
import { userDataMock } from '../../../../spec/frontend/notes/mock_data';
const localVue = createLocalVue();
describe('noteActions', () => {
let wrapper;
let store;
......@@ -15,7 +13,6 @@ describe('noteActions', () => {
shallowMount(noteActions, {
store,
propsData,
localVue,
sync: false,
attachToDocument: true,
});
......
import { shallowMount, createLocalVue } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
import ProjectHeader from 'ee/operations/components/dashboard/project_header.vue';
import { trimText } from 'helpers/text_helper';
import ProjectAvatar from '~/vue_shared/components/project_avatar/default.vue';
import { mockOneProject } from '../../mock_data';
const localVue = createLocalVue();
describe('project header component', () => {
let wrapper;
......@@ -14,7 +12,6 @@ describe('project header component', () => {
propsData: {
project: mockOneProject,
},
localVue,
sync: false,
attachToDocument: true,
});
......
import { shallowMount, createLocalVue } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
import component from 'ee/subscriptions/new/components/checkout/progress_bar.vue';
describe('Progress Bar', () => {
const localVue = createLocalVue();
let wrapper;
const factory = propsData => {
wrapper = shallowMount(component, {
propsData,
localVue,
sync: false,
});
};
......
......@@ -94,7 +94,7 @@ describe('Subscription Details', () => {
store.commit(types.UPDATE_ORGANIZATION_NAME, 'My Organization');
store.commit(types.UPDATE_NUMBER_OF_USERS, 2);
return localVue.nextTick().then(() => {
return wrapper.vm.$nextTick().then(() => {
expect(isStepValid()).toBe(true);
});
});
......
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