Skip to content
Snippets Groups Projects
Commit 132be812 authored by Mike Greiling's avatar Mike Greiling
Browse files

fix frontend test failures after jasmine upgrade

parent d5ab729d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -134,7 +134,7 @@ const Api = {
dataType: 'json',
})
.done(file => callback(null, file))
.error(callback);
.fail(callback);
},
 
users(query, options) {
Loading
Loading
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment