fix frontend test failures after jasmine upgrade
This commit is contained in:
parent
d5ab729dd3
commit
132be812d1
2 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ const Api = {
|
|||
dataType: 'json',
|
||||
})
|
||||
.done(label => callback(label))
|
||||
.error(message => callback(message.responseJSON));
|
||||
.fail(message => callback(message.responseJSON));
|
||||
},
|
||||
|
||||
// Return group projects list. Filtered by query
|
||||
|
@ -134,7 +134,7 @@ const Api = {
|
|||
dataType: 'json',
|
||||
})
|
||||
.done(file => callback(null, file))
|
||||
.error(callback);
|
||||
.fail(callback);
|
||||
},
|
||||
|
||||
users(query, options) {
|
||||
|
|
|
@ -126,7 +126,7 @@ describe('Issuable output', () => {
|
|||
|
||||
describe('updateIssuable', () => {
|
||||
it('fetches new data after update', (done) => {
|
||||
spyOn(vm.service, 'getData');
|
||||
spyOn(vm.service, 'getData').and.callThrough();
|
||||
spyOn(vm.service, 'updateIssuable').and.callFake(() => new Promise((resolve) => {
|
||||
resolve({
|
||||
json() {
|
||||
|
|
Loading…
Reference in a new issue