Fix failing tests

This commit is contained in:
Joe Fiorini
2015-02-06 10:21:25 -05:00
parent 6a2fa3c6ce
commit 8d1898e4ae
4 changed files with 7 additions and 6 deletions

View File

@@ -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);
});
}
};

View File

@@ -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);