Commit ddbaaefe authored by jakeburden's avatar jakeburden

Use shallowMount and remove stubChildren

parent 2c58787c
import Vuex from 'vuex'; import Vuex from 'vuex';
import { GlSorting, GlSortingItem } from '@gitlab/ui'; import { GlSorting, GlSortingItem } from '@gitlab/ui';
import { mount, createLocalVue } from '@vue/test-utils'; import { shallowMount, createLocalVue } from '@vue/test-utils';
import stubChildren from 'helpers/stub_children';
import ReleasesSort from '~/releases/components/releases_sort.vue'; import ReleasesSort from '~/releases/components/releases_sort.vue';
import createStore from '~/releases/stores'; import createStore from '~/releases/stores';
import createListModule from '~/releases/stores/modules/list'; import createListModule from '~/releases/stores/modules/list';
...@@ -28,10 +27,9 @@ describe('~/releases/components/releases_sort.vue', () => { ...@@ -28,10 +27,9 @@ describe('~/releases/components/releases_sort.vue', () => {
store.dispatch = jest.fn(); store.dispatch = jest.fn();
wrapper = mount(ReleasesSort, { wrapper = shallowMount(ReleasesSort, {
store, store,
stubs: { stubs: {
...stubChildren(ReleasesSort),
GlSortingItem, GlSortingItem,
}, },
localVue, localVue,
......
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