diff options
author | Phil Hughes <me@iamphill.com> | 2018-01-26 11:29:37 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-30 09:12:57 +0000 |
commit | 94c8bd9f47df5762cd6e9603dbbaf38efa47a2e7 (patch) | |
tree | c0bc08de2d54121bef3149515942b24c60e0f749 /spec/javascripts | |
parent | 3bf550bf24067972a7ddaf192a88f6e349be838c (diff) | |
download | gitlab-ce-94c8bd9f47df5762cd6e9603dbbaf38efa47a2e7.tar.gz |
fixed more unhandled promise rejections
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/repo/components/new_dropdown/modal_spec.js | 6 | ||||
-rw-r--r-- | spec/javascripts/repo/stores/actions_spec.js | 12 |
2 files changed, 13 insertions, 5 deletions
diff --git a/spec/javascripts/repo/components/new_dropdown/modal_spec.js b/spec/javascripts/repo/components/new_dropdown/modal_spec.js index 233cca06ed0..8bbc3100357 100644 --- a/spec/javascripts/repo/components/new_dropdown/modal_spec.js +++ b/spec/javascripts/repo/components/new_dropdown/modal_spec.js @@ -18,8 +18,10 @@ describe('new file modal component', () => { })); spyOn(service, 'getBranchData').and.returnValue(Promise.resolve({ - commit: { - id: '123branch', + data: { + commit: { + id: '123branch', + }, }, })); diff --git a/spec/javascripts/repo/stores/actions_spec.js b/spec/javascripts/repo/stores/actions_spec.js index 73a8dcd7a89..f678967b092 100644 --- a/spec/javascripts/repo/stores/actions_spec.js +++ b/spec/javascripts/repo/stores/actions_spec.js @@ -178,7 +178,9 @@ describe('Multi-file store actions', () => { it('calls service', (done) => { spyOn(service, 'getBranchData').and.returnValue(Promise.resolve({ - commit: { id: '123' }, + data: { + commit: { id: '123' }, + }, })); store.dispatch('checkCommitStatus') @@ -192,7 +194,9 @@ describe('Multi-file store actions', () => { it('returns true if current ref does not equal returned ID', (done) => { spyOn(service, 'getBranchData').and.returnValue(Promise.resolve({ - commit: { id: '123' }, + data: { + commit: { id: '123' }, + }, })); store.dispatch('checkCommitStatus') @@ -206,7 +210,9 @@ describe('Multi-file store actions', () => { it('returns false if current ref equals returned ID', (done) => { spyOn(service, 'getBranchData').and.returnValue(Promise.resolve({ - commit: { id: '1' }, + data: { + commit: { id: '1' }, + }, })); store.dispatch('checkCommitStatus') |