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
2b19ce62
Commit
2b19ce62
authored
Jun 19, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs for coercing triggeredBy into a collection.
parent
608e5aca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
spec/javascripts/pipelines/graph/graph_component_spec.js
spec/javascripts/pipelines/graph/graph_component_spec.js
+4
-0
spec/javascripts/vue_mr_widget/components/mr_widget_pipeline_spec.js
...ripts/vue_mr_widget/components/mr_widget_pipeline_spec.js
+12
-0
No files found.
spec/javascripts/pipelines/graph/graph_component_spec.js
View file @
2b19ce62
...
...
@@ -83,6 +83,10 @@ describe('graph component', function () {
});
describe
(
'
linked pipelines components
'
,
function
()
{
it
(
'
should coerce triggeredBy into a collection
'
,
function
()
{
expect
(
this
.
component
.
triggeredBy
.
length
).
toBe
(
1
);
});
it
(
'
should render an upstream pipelines column
'
,
function
()
{
expect
(
this
.
component
.
$el
.
querySelector
(
'
.linked-pipelines-column
'
)).
not
.
toBeNull
();
expect
(
this
.
component
.
$el
.
innerHTML
).
toContain
(
'
Upstream
'
);
...
...
spec/javascripts/vue_mr_widget/components/mr_widget_pipeline_spec.js
View file @
2b19ce62
...
...
@@ -130,6 +130,14 @@ describe('MRWidgetPipeline', () => {
});
});
it
(
'
should set triggered to an empty array
'
,
()
=>
{
expect
(
vm
.
triggered
.
length
).
toBe
(
0
);
});
it
(
'
should set triggeredBy to an empty array
'
,
()
=>
{
expect
(
vm
.
triggered
.
length
).
toBe
(
0
);
});
it
(
'
should not render upstream or downstream pipelines
'
,
()
=>
{
expect
(
el
.
querySelector
(
'
.linked-pipeline-mini-list
'
)).
toBeNull
();
});
...
...
@@ -149,6 +157,10 @@ describe('MRWidgetPipeline', () => {
}).
$mount
();
});
it
(
'
should coerce triggeredBy into a collection
'
,
function
()
{
expect
(
this
.
vm
.
triggeredBy
.
length
).
toBe
(
1
);
});
it
(
'
should render the linked pipelines mini list
'
,
function
(
done
)
{
Vue
.
nextTick
(()
=>
{
expect
(
this
.
vm
.
$el
.
querySelector
(
'
.linked-pipeline-mini-list.is-upstream
'
)).
not
.
toBeNull
();
...
...
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