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
Boxiang Sun
gitlab-ce
Commits
4ff6cec2
Commit
4ff6cec2
authored
May 09, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test failure in job vue componenFix test failure in job vue componentt
parent
387b4410
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
28 deletions
+46
-28
spec/javascripts/pipelines/graph/graph_component_spec.js
spec/javascripts/pipelines/graph/graph_component_spec.js
+46
-28
No files found.
spec/javascripts/pipelines/graph/graph_component_spec.js
View file @
4ff6cec2
...
@@ -19,34 +19,49 @@ describe('graph component', () => {
...
@@ -19,34 +19,49 @@ describe('graph component', () => {
});
});
describe
(
'
with a successfull response
'
,
()
=>
{
describe
(
'
with a successfull response
'
,
()
=>
{
const
interceptor
=
(
request
,
next
)
=>
{
const
graphJSON
=
{
next
(
request
.
respondWith
(
JSON
.
stringify
({
details
:
{
details
:
{
stages
:
[{
stages
:
[{
name
:
'
test
'
,
name
:
'
review
'
,
title
:
'
test: passed
'
,
title
:
'
review: passed
'
,
groups
:
[{
name
:
'
review_1
'
,
size
:
1
,
status
:
{
status
:
{
icon
:
'
icon_status_success
'
,
icon
:
'
icon_status_success
'
,
text
:
'
passed
'
,
text
:
'
passed
'
,
label
:
'
passed
'
,
label
:
'
passed
'
,
details_path
:
'
/root/ci-mock/pipelines/123#test
'
,
group
:
'
success
'
,
has_details
:
true
,
details_path
:
'
/root/review-app/builds/4374
'
,
favicon
:
'
/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico
'
,
action
:
{
icon
:
'
icon_action_retry
'
,
title
:
'
Retry
'
,
path
:
'
/root/review-app/builds/4374/retry
'
,
method
:
'
post
'
,
},
},
},
path
:
'
/root/ci-mock/pipelines/123#test
'
,
groups
:
[{
name
:
'
test
'
,
size
:
1
,
jobs
:
[{
jobs
:
[{
id
:
4153
,
id
:
4374
,
name
:
'
test
'
,
name
:
'
review_1
'
,
build_path
:
'
/root/review-app/builds/4374
'
,
retry_path
:
'
/root/review-app/builds/4374/retry
'
,
playable
:
false
,
created_at
:
'
2017-05-08T14:57:39.880Z
'
,
updated_at
:
'
2017-05-08T14:57:52.639Z
'
,
status
:
{
status
:
{
icon
:
'
icon_status_success
'
,
icon
:
'
icon_status_success
'
,
text
:
'
passed
'
,
text
:
'
passed
'
,
label
:
'
passed
'
,
label
:
'
passed
'
,
details_path
:
'
/root/ci-mock/builds/4153
'
,
group
:
'
success
'
,
has_details
:
true
,
details_path
:
'
/root/review-app/builds/4374
'
,
favicon
:
'
/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico
'
,
action
:
{
action
:
{
icon
:
'
icon_action_retry
'
,
icon
:
'
icon_action_retry
'
,
title
:
'
Retry
'
,
title
:
'
Retry
'
,
path
:
'
/root/ci-mock/builds/4153
/retry
'
,
path
:
'
/root/review-app/builds/4374
/retry
'
,
method
:
'
post
'
,
method
:
'
post
'
,
},
},
},
},
...
@@ -54,7 +69,10 @@ describe('graph component', () => {
...
@@ -54,7 +69,10 @@ describe('graph component', () => {
}],
}],
}],
}],
},
},
}),
{
};
const
interceptor
=
(
request
,
next
)
=>
{
next
(
request
.
respondWith
(
JSON
.
stringify
(
graphJSON
),
{
status
:
200
,
status
:
200
,
}));
}));
};
};
...
...
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