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
76585993
Commit
76585993
authored
Nov 14, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix race condition between service class and manually mocked store values
parent
30800334
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
spec/javascripts/issuable/related_issues/components/related_issues_root_spec.js
...ble/related_issues/components/related_issues_root_spec.js
+9
-2
No files found.
spec/javascripts/issuable/related_issues/components/related_issues_root_spec.js
View file @
76585993
import
Vue
from
'
vue
'
;
import
relatedIssuesRoot
from
'
~/issuable/related_issues/components/related_issues_root.vue
'
;
import
relatedIssuesService
from
'
~/issuable/related_issues/services/related_issues_service.js
'
;
const
defaultProps
=
{
endpoint
:
'
/foo/bar/issues/1/related_issues
'
,
...
...
@@ -41,11 +42,17 @@ describe('RelatedIssuesRoot', () => {
describe
(
'
methods
'
,
()
=>
{
describe
(
'
onRelatedIssueRemoveRequest
'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
((
done
)
=>
{
spyOn
(
relatedIssuesService
.
prototype
,
'
fetchRelatedIssues
'
).
and
.
returnValue
(
Promise
.
reject
());
vm
=
new
RelatedIssuesRoot
({
propsData
:
defaultProps
,
}).
$mount
();
vm
.
store
.
setRelatedIssues
([
issuable1
]);
setTimeout
(()
=>
{
vm
.
store
.
setRelatedIssues
([
issuable1
]);
done
();
});
});
it
(
'
remove related issue and succeeds
'
,
(
done
)
=>
{
...
...
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