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
a0c516cb
Commit
a0c516cb
authored
Jun 02, 2017
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix propsData in graph component spec.
parent
6b4b52b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/javascripts/pipelines/graph/graph_component_spec.js
spec/javascripts/pipelines/graph/graph_component_spec.js
+5
-5
No files found.
spec/javascripts/pipelines/graph/graph_component_spec.js
View file @
a0c516cb
...
@@ -5,8 +5,8 @@ import linkedPipelineJSON from './linked_pipelines_mock_data';
...
@@ -5,8 +5,8 @@ import linkedPipelineJSON from './linked_pipelines_mock_data';
const
GraphComponent
=
Vue
.
extend
(
graphComponent
);
const
GraphComponent
=
Vue
.
extend
(
graphComponent
);
const
state
=
{
const
defaultPropsData
=
{
graph
:
graphJSON
.
details
.
stages
,
pipeline
:
graphJSON
.
details
.
stages
,
triggered
:
linkedPipelineJSON
.
triggered
,
triggered
:
linkedPipelineJSON
.
triggered
,
triggerer
:
linkedPipelineJSON
.
triggerer
,
triggerer
:
linkedPipelineJSON
.
triggerer
,
};
};
...
@@ -15,7 +15,7 @@ describe('graph component', function () {
...
@@ -15,7 +15,7 @@ describe('graph component', function () {
describe
(
'
while is loading
'
,
function
()
{
describe
(
'
while is loading
'
,
function
()
{
beforeEach
(
function
()
{
beforeEach
(
function
()
{
this
.
component
=
new
GraphComponent
({
this
.
component
=
new
GraphComponent
({
propsData
:
{
state
}
,
propsData
:
defaultPropsData
,
}).
$mount
();
}).
$mount
();
});
});
...
@@ -27,7 +27,7 @@ describe('graph component', function () {
...
@@ -27,7 +27,7 @@ describe('graph component', function () {
describe
(
'
when linked pipelines are present
'
,
function
()
{
describe
(
'
when linked pipelines are present
'
,
function
()
{
beforeEach
(
function
()
{
beforeEach
(
function
()
{
this
.
component
=
new
GraphComponent
({
this
.
component
=
new
GraphComponent
({
propsData
:
{
state
}
,
propsData
:
defaultPropsData
,
}).
$mount
();
}).
$mount
();
});
});
...
@@ -108,7 +108,7 @@ describe('graph component', function () {
...
@@ -108,7 +108,7 @@ describe('graph component', function () {
describe
(
'
when linked pipelines are not present
'
,
function
()
{
describe
(
'
when linked pipelines are not present
'
,
function
()
{
beforeEach
(
function
()
{
beforeEach
(
function
()
{
this
.
component
=
new
GraphComponent
({
this
.
component
=
new
GraphComponent
({
propsData
:
{
state
:
Object
.
assign
(
state
,
{
triggered
:
[],
triggerer
:
[]
})
},
propsData
:
{
pipeline
:
graphJSON
,
triggered
:
[],
triggerer
:
[]
},
}).
$mount
();
}).
$mount
();
});
});
...
...
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