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
d3605803
Commit
d3605803
authored
May 05, 2021
by
Samantha Ming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to use unify nextTick
parent
2c04e7ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
spec/frontend/repository/components/blob_content_viewer_spec.js
...rontend/repository/components/blob_content_viewer_spec.js
+4
-3
No files found.
spec/frontend/repository/components/blob_content_viewer_spec.js
View file @
d3605803
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
,
mount
}
from
'
@vue/test-utils
'
;
import
{
nextTick
}
from
'
vue
'
;
import
BlobContent
from
'
~/blob/components/blob_content.vue
'
;
import
BlobHeader
from
'
~/blob/components/blob_header.vue
'
;
import
BlobContentViewer
from
'
~/repository/components/blob_content_viewer.vue
'
;
...
...
@@ -149,7 +150,7 @@ describe('Blob content viewer component', () => {
expect
(
findBlobHeader
().
props
(
'
activeViewerType
'
)).
toEqual
(
'
rich
'
);
findBlobHeader
().
vm
.
$emit
(
'
viewer-changed
'
,
'
simple
'
);
await
wrapper
.
vm
.
$
nextTick
();
await
nextTick
();
expect
(
findBlobHeader
().
props
(
'
activeViewerType
'
)).
toEqual
(
'
simple
'
);
expect
(
findBlobContent
().
props
(
'
activeViewer
'
)).
toEqual
(
...
...
@@ -168,7 +169,7 @@ describe('Blob content viewer component', () => {
BlobContent
:
true
,
},
});
await
wrapper
.
vm
.
$
nextTick
();
await
nextTick
();
expect
(
findBlobHeaderEdit
().
props
(
'
editPath
'
)).
toEqual
(
'
some_file.js/edit
'
);
});
...
...
@@ -179,7 +180,7 @@ describe('Blob content viewer component', () => {
BlobContent
:
true
,
},
});
await
wrapper
.
vm
.
$
nextTick
();
await
nextTick
();
expect
(
findBlobHeaderEdit
().
props
(
'
editPath
'
)).
toEqual
(
'
some_file.js/edit
'
);
});
});
...
...
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