BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ce22977f
Unverified
Commit
ce22977f
authored
Nov 01, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use settimeoutpromise in field_spec
parent
af13ffbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
23 deletions
+14
-23
field_spec.js
.../javascripts/vue_shared/components/markdown/field_spec.js
+14
-23
No files found.
spec/javascripts/vue_shared/components/markdown/field_spec.js
View file @
ce22977f
import
Vue
from
'vue'
;
import
fieldComponent
from
'~/vue_shared/components/markdown/field.vue'
;
import
setTimeoutPromise
from
'../../../helpers/set_timeout_promise_helper'
;
describe
(
'Markdown field component'
,
()
=>
{
let
vm
;
...
...
@@ -115,29 +116,19 @@ describe('Markdown field component', () => {
it
(
'clicking already active write or preview link does nothing'
,
(
done
)
=>
{
writeLink
.
click
();
setTimeout
(()
=>
{
assertLinks
(
true
);
writeLink
.
click
();
setTimeout
(()
=>
{
assertLinks
(
true
);
previewLink
.
click
();
setTimeout
(()
=>
{
assertLinks
(
false
);
previewLink
.
click
();
setTimeout
(()
=>
{
assertLinks
(
false
);
done
();
});
});
});
});
setTimeoutPromise
()
.
then
(()
=>
assertLinks
(
true
))
.
then
(()
=>
writeLink
.
click
())
.
then
(()
=>
setTimeoutPromise
())
.
then
(()
=>
assertLinks
(
true
))
.
then
(()
=>
previewLink
.
click
())
.
then
(()
=>
setTimeoutPromise
())
.
then
(()
=>
assertLinks
(
false
))
.
then
(()
=>
previewLink
.
click
())
.
then
(()
=>
setTimeoutPromise
())
.
then
(()
=>
assertLinks
(
false
))
.
then
(
done
)
.
catch
(
done
.
fail
);
});
});
...
...
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