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
fd874969
Commit
fd874969
authored
Feb 20, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove localVue from discussion_jump_to_next_button_spec.js
parent
dc9a6765
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
spec/frontend/notes/components/discussion_jump_to_next_button_spec.js
...d/notes/components/discussion_jump_to_next_button_spec.js
+4
-11
No files found.
spec/frontend/notes/components/discussion_jump_to_next_button_spec.js
View file @
fd874969
import
jumpToNextDiscussionButton
from
'
~/notes/components/discussion_jump_to_next_button.vue
'
;
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
const
localVue
=
createLocalVue
();
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
describe
(
'
jumpToNextDiscussionButton
'
,
()
=>
{
let
wrapper
;
beforeEach
(()
=>
{
wrapper
=
shallowMount
(
jumpToNextDiscussionButton
,
{
localVue
,
sync
:
false
,
});
});
...
...
@@ -17,17 +14,13 @@ describe('jumpToNextDiscussionButton', () => {
wrapper
.
destroy
();
});
it
(
'
emits onClick event on button click
'
,
done
=>
{
it
(
'
emits onClick event on button click
'
,
()
=>
{
const
button
=
wrapper
.
find
({
ref
:
'
button
'
});
button
.
trigger
(
'
click
'
);
localVue
.
nextTick
(()
=>
{
expect
(
wrapper
.
emitted
()).
toEqual
({
onClick
:
[[]],
});
done
();
expect
(
wrapper
.
emitted
()).
toEqual
({
onClick
:
[[]],
});
});
});
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