Commit ddbaaefe authored by jakeburden's avatar jakeburden

Use shallowMount and remove stubChildren

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