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
c6d126b3
Commit
c6d126b3
authored
Jan 26, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import mock data from file
parent
7a4b8584
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
72 deletions
+2
-72
spec/javascripts/issuable/related_issues/components/related_issues_block_spec.js
...le/related_issues/components/related_issues_block_spec.js
+1
-49
spec/javascripts/issuable/related_issues/components/related_issues_root_spec.js
...ble/related_issues/components/related_issues_root_spec.js
+1
-23
No files found.
spec/javascripts/issuable/related_issues/components/related_issues_block_spec.js
View file @
c6d126b3
...
...
@@ -2,55 +2,7 @@ import Vue from 'vue';
import
eventHub
from
'
~/issuable/related_issues/event_hub
'
;
import
relatedIssuesBlock
from
'
~/issuable/related_issues/components/related_issues_block.vue
'
;
const
issuable1
=
{
id
:
200
,
epic_issue_id
:
1
,
reference
:
'
foo/bar#123
'
,
displayReference
:
'
#123
'
,
title
:
'
some title
'
,
path
:
'
/foo/bar/issues/123
'
,
state
:
'
opened
'
,
};
const
issuable2
=
{
id
:
201
,
epic_issue_id
:
2
,
reference
:
'
foo/bar#124
'
,
displayReference
:
'
#124
'
,
title
:
'
some other thing
'
,
path
:
'
/foo/bar/issues/124
'
,
state
:
'
opened
'
,
};
const
issuable3
=
{
id
:
202
,
epic_issue_id
:
3
,
reference
:
'
foo/bar#125
'
,
displayReference
:
'
#125
'
,
title
:
'
some other other thing
'
,
path
:
'
/foo/bar/issues/125
'
,
state
:
'
opened
'
,
};
const
issuable4
=
{
id
:
203
,
epic_issue_id
:
4
,
reference
:
'
foo/bar#126
'
,
displayReference
:
'
#126
'
,
title
:
'
some other other other thing
'
,
path
:
'
/foo/bar/issues/126
'
,
state
:
'
opened
'
,
};
const
issuable5
=
{
id
:
204
,
epic_issue_id
:
5
,
reference
:
'
foo/bar#127
'
,
displayReference
:
'
#127
'
,
title
:
'
some other other other thing
'
,
path
:
'
/foo/bar/issues/127
'
,
state
:
'
opened
'
,
};
import
{
issuable1
,
issuable2
,
issuable3
,
issuable4
,
issuable5
}
from
'
../mock_data
'
;
describe
(
'
RelatedIssuesBlock
'
,
()
=>
{
let
RelatedIssuesBlock
;
...
...
spec/javascripts/issuable/related_issues/components/related_issues_root_spec.js
View file @
c6d126b3
...
...
@@ -3,29 +3,7 @@ import _ from 'underscore';
import
relatedIssuesRoot
from
'
~/issuable/related_issues/components/related_issues_root.vue
'
;
import
relatedIssuesService
from
'
~/issuable/related_issues/services/related_issues_service
'
;
const
defaultProps
=
{
endpoint
:
'
/foo/bar/issues/1/related_issues
'
,
currentNamespacePath
:
'
foo
'
,
currentProjectPath
:
'
bar
'
,
};
const
issuable1
=
{
id
:
200
,
reference
:
'
foo/bar#123
'
,
title
:
'
issue1
'
,
path
:
'
/foo/bar/issues/123
'
,
state
:
'
opened
'
,
relation_path
:
'
/foo/bar/issues/123/related_issues/1
'
,
};
const
issuable2
=
{
id
:
201
,
reference
:
'
foo/bar#124
'
,
title
:
'
issue1
'
,
path
:
'
/foo/bar/issues/124
'
,
state
:
'
opened
'
,
relation_path
:
'
/foo/bar/issues/124/related_issues/1
'
,
};
import
{
defaultProps
,
issuable1
,
issuable2
}
from
'
../mock_data
'
;
describe
(
'
RelatedIssuesRoot
'
,
()
=>
{
let
RelatedIssuesRoot
;
...
...
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