Commit 7ea054bd authored by Illya Klymov's avatar Illya Klymov

Remove useless stubs from specs

parent eeb6ce4c
......@@ -52,7 +52,6 @@ describe('Issuable component', () => {
},
stubs: {
'gl-sprintf': GlSprintf,
'gl-link': '<a><slot></slot></a>',
},
});
};
......
......@@ -18,7 +18,6 @@ describe('packages_list', () => {
let wrapper;
let store;
const GlSortingItem = { name: 'sorting-item-stub', template: '<div><slot></slot></div>' };
const EmptySlotStub = { name: 'empty-slot-stub', template: '<div>bar</div>' };
const findPackagesListLoader = () => wrapper.find(PackagesListLoader);
......@@ -67,7 +66,6 @@ describe('packages_list', () => {
stubs: {
...stubChildren(PackagesList),
GlTable,
GlSortingItem,
GlModal,
},
...options,
......
import Vuex from 'vuex';
import { GlSorting } from '@gitlab/ui';
import { GlSorting, GlSortingItem } from '@gitlab/ui';
import { mount, createLocalVue } from '@vue/test-utils';
import stubChildren from 'helpers/stub_children';
import PackagesSort from '~/packages/list/components/packages_sort.vue';
......@@ -13,8 +13,6 @@ describe('packages_sort', () => {
let sorting;
let sortingItems;
const GlSortingItem = { name: 'sorting-item-stub', template: '<div><slot></slot></div>' };
const findPackageListSorting = () => wrapper.find(GlSorting);
const findSortingItems = () => wrapper.findAll(GlSortingItem);
......
......@@ -23,9 +23,7 @@ const createComponent = ({ config = mockAuthorToken, value = { data: '' }, activ
alignSuggestions: function fakeAlignSuggestions() {},
},
stubs: {
Portal: {
template: '<div><slot></slot></div>',
},
Portal: true,
GlFilteredSearchSuggestionList: {
template: '<div></div>',
methods: {
......
......@@ -27,9 +27,7 @@ const createComponent = ({ config = mockLabelToken, value = { data: '' }, active
alignSuggestions: function fakeAlignSuggestions() {},
},
stubs: {
Portal: {
template: '<div><slot></slot></div>',
},
Portal: true,
GlFilteredSearchSuggestionList: {
template: '<div></div>',
methods: {
......
......@@ -32,9 +32,7 @@ const createComponent = ({
alignSuggestions: function fakeAlignSuggestions() {},
},
stubs: {
Portal: {
template: '<div><slot></slot></div>',
},
Portal: true,
GlFilteredSearchSuggestionList: {
template: '<div></div>',
methods: {
......
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