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
ac87e5d6
Commit
ac87e5d6
authored
Aug 21, 2020
by
v_mishra
Committed by
Taurie Davis
Aug 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix jest 3/4
parent
db0d4c51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/spec/frontend/related_items_tree/components/tree_root_spec.js
.../frontend/related_items_tree/components/tree_root_spec.js
+3
-3
No files found.
ee/spec/frontend/related_items_tree/components/tree_root_spec.js
View file @
ac87e5d6
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
Vuex
from
'
vuex
'
;
import
Vuex
from
'
vuex
'
;
import
{
Gl
Deprecated
Button
}
from
'
@gitlab/ui
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
Draggable
from
'
vuedraggable
'
;
import
Draggable
from
'
vuedraggable
'
;
...
@@ -410,13 +410,13 @@ describe('RelatedItemsTree', () => {
...
@@ -410,13 +410,13 @@ describe('RelatedItemsTree', () => {
});
});
it
(
'
renders `Show more` link
'
,
()
=>
{
it
(
'
renders `Show more` link
'
,
()
=>
{
expect
(
wrapper
.
find
(
Gl
Deprecated
Button
).
text
()).
toBe
(
'
Show more
'
);
expect
(
wrapper
.
find
(
GlButton
).
text
()).
toBe
(
'
Show more
'
);
});
});
it
(
'
calls `handleShowMoreClick` when `Show more` link is clicked
'
,
()
=>
{
it
(
'
calls `handleShowMoreClick` when `Show more` link is clicked
'
,
()
=>
{
jest
.
spyOn
(
wrapper
.
vm
,
'
handleShowMoreClick
'
).
mockImplementation
(()
=>
{});
jest
.
spyOn
(
wrapper
.
vm
,
'
handleShowMoreClick
'
).
mockImplementation
(()
=>
{});
wrapper
.
find
(
Gl
Deprecated
Button
).
vm
.
$emit
(
'
click
'
);
wrapper
.
find
(
GlButton
).
vm
.
$emit
(
'
click
'
);
expect
(
wrapper
.
vm
.
handleShowMoreClick
).
toHaveBeenCalled
();
expect
(
wrapper
.
vm
.
handleShowMoreClick
).
toHaveBeenCalled
();
});
});
...
...
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