diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-06-16 00:21:53 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-06-16 00:21:53 +0300 |
commit | 132be812d1c4ecf185f8839432f6bcafa13880e5 (patch) | |
tree | 1a9316a7ddc27ac72b12db4c796f8e20b964964d /app/assets | |
parent | d5ab729dd31725b8657112c83082dc57c10f5089 (diff) |
fix frontend test failures after jasmine upgrade
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/api.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js index 6680834a8d1..56fa0d71a9a 100644 --- a/app/assets/javascripts/api.js +++ b/app/assets/javascripts/api.js @@ -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) { |