Commit 47bc5581 authored by Kushal Pandya's avatar Kushal Pandya

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

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

Closes #121593

See merge request gitlab-org/gitlab!22590
parents f9bb0aba 97d11dd4
import { createLocalVue, shallowMount } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
import createStore from 'ee/billings/stores';
import SubscriptionApp from 'ee/billings/components/app.vue';
import SubscriptionTable from 'ee/billings/components/subscription_table.vue';
......@@ -15,13 +15,10 @@ describe('SubscriptionApp component', () => {
};
const factory = (props = appProps) => {
const localVue = createLocalVue();
store = createStore();
jest.spyOn(store, 'dispatch').mockImplementation();
wrapper = shallowMount(SubscriptionApp, {
localVue,
store,
sync: false,
propsData: { ...props },
......
import { createLocalVue, shallowMount } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
import { GlLoadingIcon } from '@gitlab/ui';
import { TEST_HOST } from 'helpers/test_constants';
import createStore from 'ee/billings/stores';
......@@ -18,14 +18,11 @@ describe('SubscriptionTable component', () => {
wrapper.findAll('a').wrappers.map(x => ({ text: x.text(), href: x.attributes('href') }));
const factory = (options = {}) => {
const localVue = createLocalVue();
store = createStore();
jest.spyOn(store, 'dispatch').mockImplementation();
wrapper = shallowMount(localVue.extend(SubscriptionTable), {
wrapper = shallowMount(SubscriptionTable, {
...options,
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