Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7ea054bd
Commit
7ea054bd
authored
Aug 24, 2020
by
Illya Klymov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless stubs from specs
parent
eeb6ce4c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
15 deletions
+4
-15
spec/frontend/issuables_list/components/issuable_spec.js
spec/frontend/issuables_list/components/issuable_spec.js
+0
-1
spec/frontend/packages/list/components/packages_list_spec.js
spec/frontend/packages/list/components/packages_list_spec.js
+0
-2
spec/frontend/packages/list/components/packages_sort_spec.js
spec/frontend/packages/list/components/packages_sort_spec.js
+1
-3
spec/frontend/vue_shared/components/filtered_search_bar/tokens/author_token_spec.js
...omponents/filtered_search_bar/tokens/author_token_spec.js
+1
-3
spec/frontend/vue_shared/components/filtered_search_bar/tokens/label_token_spec.js
...components/filtered_search_bar/tokens/label_token_spec.js
+1
-3
spec/frontend/vue_shared/components/filtered_search_bar/tokens/milestone_token_spec.js
...onents/filtered_search_bar/tokens/milestone_token_spec.js
+1
-3
No files found.
spec/frontend/issuables_list/components/issuable_spec.js
View file @
7ea054bd
...
...
@@ -52,7 +52,6 @@ describe('Issuable component', () => {
},
stubs
:
{
'
gl-sprintf
'
:
GlSprintf
,
'
gl-link
'
:
'
<a><slot></slot></a>
'
,
},
});
};
...
...
spec/frontend/packages/list/components/packages_list_spec.js
View file @
7ea054bd
...
...
@@ -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
,
...
...
spec/frontend/packages/list/components/packages_sort_spec.js
View file @
7ea054bd
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
);
...
...
spec/frontend/vue_shared/components/filtered_search_bar/tokens/author_token_spec.js
View file @
7ea054bd
...
...
@@ -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
:
{
...
...
spec/frontend/vue_shared/components/filtered_search_bar/tokens/label_token_spec.js
View file @
7ea054bd
...
...
@@ -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
:
{
...
...
spec/frontend/vue_shared/components/filtered_search_bar/tokens/milestone_token_spec.js
View file @
7ea054bd
...
...
@@ -32,9 +32,7 @@ const createComponent = ({
alignSuggestions
:
function
fakeAlignSuggestions
()
{},
},
stubs
:
{
Portal
:
{
template
:
'
<div><slot></slot></div>
'
,
},
Portal
:
true
,
GlFilteredSearchSuggestionList
:
{
template
:
'
<div></div>
'
,
methods
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment