mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Fix failing tests
This commit is contained in:
@@ -40,7 +40,7 @@ function HostCountGraphData(Rest, getBasePath, processErrors, $q) {
|
||||
processErrors(null, response.data, response.status, null, { hdr: 'Error!',
|
||||
msg: errorMessage
|
||||
});
|
||||
throw response;
|
||||
return $q.reject(response);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -4,9 +4,10 @@ angular.module('DataServices')
|
||||
"GetBasePath",
|
||||
"ProcessErrors",
|
||||
"$rootScope",
|
||||
"$q",
|
||||
JobStatusGraphData]);
|
||||
|
||||
function JobStatusGraphData(Rest, getBasePath, processErrors, $rootScope) {
|
||||
function JobStatusGraphData(Rest, getBasePath, processErrors, $rootScope, $q) {
|
||||
|
||||
function pluck(property, promise) {
|
||||
return promise.then(function(value) {
|
||||
@@ -28,7 +29,7 @@ function JobStatusGraphData(Rest, getBasePath, processErrors, $rootScope) {
|
||||
hdr: 'Error!',
|
||||
msg: errorMessage
|
||||
});
|
||||
throw response;
|
||||
return $q.reject(response);
|
||||
});
|
||||
|
||||
return pluck('data', result);
|
||||
|
||||
Reference in New Issue
Block a user