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
2f06c7a1
Commit
2f06c7a1
authored
Apr 17, 2020
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change to directly importing `nextTick`
parent
2262fe6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/frontend/notes/components/note_header_spec.js
spec/frontend/notes/components/note_header_spec.js
+4
-4
No files found.
spec/frontend/notes/components/note_header_spec.js
View file @
2f06c7a1
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
Vue
from
'
vue
'
;
import
{
nextTick
}
from
'
vue
'
;
import
Vuex
from
'
vuex
'
;
import
NoteHeader
from
'
~/notes/components/note_header.vue
'
;
import
GitlabTeamMemberBadge
from
'
~/vue_shared/components/user_avatar/badges/gitlab_team_member_badge.vue
'
;
...
...
@@ -213,7 +213,7 @@ describe('NoteHeader component', () => {
},
});
return
Vue
.
nextTick
().
then
(()
=>
{
return
nextTick
().
then
(()
=>
{
const
authorStatus
=
wrapper
.
find
({
ref
:
'
authorStatus
'
});
authorStatus
.
trigger
(
'
mouseenter
'
);
...
...
@@ -231,13 +231,13 @@ describe('NoteHeader component', () => {
authorUsernameLink
.
trigger
(
'
mouseenter
'
);
Vue
.
nextTick
(()
=>
{
nextTick
(()
=>
{
expect
(
authorNameLink
.
classes
()).
toContain
(
'
hover
'
);
expect
(
authorNameLink
.
classes
()).
toContain
(
'
text-underline
'
);
authorUsernameLink
.
trigger
(
'
mouseleave
'
);
Vue
.
nextTick
(()
=>
{
nextTick
(()
=>
{
expect
(
authorNameLink
.
classes
()).
not
.
toContain
(
'
hover
'
);
expect
(
authorNameLink
.
classes
()).
not
.
toContain
(
'
text-underline
'
);
...
...
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