Commit 94c8bd9f authored by Phil Hughes's avatar Phil Hughes

fixed more unhandled promise rejections

parent 3bf550bf
...@@ -18,8 +18,10 @@ describe('new file modal component', () => { ...@@ -18,8 +18,10 @@ describe('new file modal component', () => {
})); }));
spyOn(service, 'getBranchData').and.returnValue(Promise.resolve({ spyOn(service, 'getBranchData').and.returnValue(Promise.resolve({
commit: { data: {
id: '123branch', commit: {
id: '123branch',
},
}, },
})); }));
......
...@@ -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({
commit: { id: '123' }, data: {
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({
commit: { id: '123' }, data: {
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({
commit: { id: '1' }, data: {
commit: { id: '1' },
},
})); }));
store.dispatch('checkCommitStatus') store.dispatch('checkCommitStatus')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment