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
Léo-Paul Géneau
gitlab-ce
Commits
94c8bd9f
Commit
94c8bd9f
authored
Jan 26, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed more unhandled promise rejections
parent
3bf550bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
spec/javascripts/repo/components/new_dropdown/modal_spec.js
spec/javascripts/repo/components/new_dropdown/modal_spec.js
+4
-2
spec/javascripts/repo/stores/actions_spec.js
spec/javascripts/repo/stores/actions_spec.js
+9
-3
No files found.
spec/javascripts/repo/components/new_dropdown/modal_spec.js
View file @
94c8bd9f
...
@@ -18,9 +18,11 @@ describe('new file modal component', () => {
...
@@ -18,9 +18,11 @@ describe('new file modal component', () => {
}));
}));
spyOn
(
service
,
'
getBranchData
'
).
and
.
returnValue
(
Promise
.
resolve
({
spyOn
(
service
,
'
getBranchData
'
).
and
.
returnValue
(
Promise
.
resolve
({
data
:
{
commit
:
{
commit
:
{
id
:
'
123branch
'
,
id
:
'
123branch
'
,
},
},
},
}));
}));
spyOn
(
service
,
'
getTreeData
'
).
and
.
returnValue
(
Promise
.
resolve
({
spyOn
(
service
,
'
getTreeData
'
).
and
.
returnValue
(
Promise
.
resolve
({
...
...
spec/javascripts/repo/stores/actions_spec.js
View file @
94c8bd9f
...
@@ -178,7 +178,9 @@ describe('Multi-file store actions', () => {
...
@@ -178,7 +178,9 @@ describe('Multi-file store actions', () => {
it
(
'
calls service
'
,
(
done
)
=>
{
it
(
'
calls service
'
,
(
done
)
=>
{
spyOn
(
service
,
'
getBranchData
'
).
and
.
returnValue
(
Promise
.
resolve
({
spyOn
(
service
,
'
getBranchData
'
).
and
.
returnValue
(
Promise
.
resolve
({
data
:
{
commit
:
{
id
:
'
123
'
},
commit
:
{
id
:
'
123
'
},
},
}));
}));
store
.
dispatch
(
'
checkCommitStatus
'
)
store
.
dispatch
(
'
checkCommitStatus
'
)
...
@@ -192,7 +194,9 @@ describe('Multi-file store actions', () => {
...
@@ -192,7 +194,9 @@ describe('Multi-file store actions', () => {
it
(
'
returns true if current ref does not equal returned ID
'
,
(
done
)
=>
{
it
(
'
returns true if current ref does not equal returned ID
'
,
(
done
)
=>
{
spyOn
(
service
,
'
getBranchData
'
).
and
.
returnValue
(
Promise
.
resolve
({
spyOn
(
service
,
'
getBranchData
'
).
and
.
returnValue
(
Promise
.
resolve
({
data
:
{
commit
:
{
id
:
'
123
'
},
commit
:
{
id
:
'
123
'
},
},
}));
}));
store
.
dispatch
(
'
checkCommitStatus
'
)
store
.
dispatch
(
'
checkCommitStatus
'
)
...
@@ -206,7 +210,9 @@ describe('Multi-file store actions', () => {
...
@@ -206,7 +210,9 @@ describe('Multi-file store actions', () => {
it
(
'
returns false if current ref equals returned ID
'
,
(
done
)
=>
{
it
(
'
returns false if current ref equals returned ID
'
,
(
done
)
=>
{
spyOn
(
service
,
'
getBranchData
'
).
and
.
returnValue
(
Promise
.
resolve
({
spyOn
(
service
,
'
getBranchData
'
).
and
.
returnValue
(
Promise
.
resolve
({
data
:
{
commit
:
{
id
:
'
1
'
},
commit
:
{
id
:
'
1
'
},
},
}));
}));
store
.
dispatch
(
'
checkCommitStatus
'
)
store
.
dispatch
(
'
checkCommitStatus
'
)
...
...
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