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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
e2575def
Commit
e2575def
authored
Feb 28, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed eslint
parent
9cd53cd8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
spec/javascripts/boards/board_new_issue_spec.js
spec/javascripts/boards/board_new_issue_spec.js
+13
-11
No files found.
spec/javascripts/boards/board_new_issue_spec.js
View file @
e2575def
/* global Vue */
/* global Vue */
/* global boardsMockInterceptor */
/* global BoardService */
/* global List */
/* global listObj */
import
boardNewIssue
from
'
~/boards/components/board_new_issue
'
;
import
boardNewIssue
from
'
~/boards/components/board_new_issue
'
;
...
@@ -6,7 +10,7 @@ require('~/boards/models/list');
...
@@ -6,7 +10,7 @@ require('~/boards/models/list');
require
(
'
./mock_data
'
);
require
(
'
./mock_data
'
);
require
(
'
es6-promise
'
).
polyfill
();
require
(
'
es6-promise
'
).
polyfill
();
f
describe
(
'
Issue boards new issue form
'
,
()
=>
{
describe
(
'
Issue boards new issue form
'
,
()
=>
{
let
vm
;
let
vm
;
let
list
;
let
list
;
const
promiseReturn
=
{
const
promiseReturn
=
{
...
@@ -31,15 +35,13 @@ fdescribe('Issue boards new issue form', () => {
...
@@ -31,15 +35,13 @@ fdescribe('Issue boards new issue form', () => {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
list
=
new
List
(
listObj
);
list
=
new
List
(
listObj
);
spyOn
(
gl
.
boardService
,
'
newIssue
'
).
and
.
callFake
(()
=>
{
spyOn
(
gl
.
boardService
,
'
newIssue
'
).
and
.
callFake
(()
=>
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
vm
.
title
===
'
error
'
)
{
if
(
vm
.
title
===
'
error
'
)
{
reject
();
reject
();
}
else
{
}
else
{
resolve
(
promiseReturn
);
resolve
(
promiseReturn
);
}
}
});
}));
});
vm
=
new
BoardNewIssueComp
({
vm
=
new
BoardNewIssueComp
({
propsData
:
{
propsData
:
{
...
@@ -101,7 +103,7 @@ fdescribe('Issue boards new issue form', () => {
...
@@ -101,7 +103,7 @@ fdescribe('Issue boards new issue form', () => {
});
});
it
(
'
enables button after submit
'
,
(
done
)
=>
{
it
(
'
enables button after submit
'
,
(
done
)
=>
{
vm
.
title
=
'
submit issue
'
;
vm
.
title
=
'
submit issue
'
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
submitIssue
();
submitIssue
();
...
...
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