mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
Add error handling to retrieval service
This commit is contained in:
@@ -71,6 +71,17 @@ describe('Job Status Graph Data Service', function() {
|
||||
return expect(result).to.eventually.equal(firstResult);;
|
||||
});
|
||||
|
||||
it('processes errors through error handler', function() {
|
||||
var expected = { data: "error", status: "bad" };
|
||||
var actual = jobStatusGraphData.get();
|
||||
|
||||
restStub.fail(expected);
|
||||
|
||||
flushPromises();
|
||||
|
||||
return expect(actual).to.be.rejectedWith(expected);
|
||||
});
|
||||
|
||||
it('broadcasts event when data is received', function() {
|
||||
var expected = "value";
|
||||
var result = q.defer();
|
||||
@@ -88,7 +99,4 @@ describe('Job Status Graph Data Service', function() {
|
||||
return expect(result.promise).to.eventually.equal(expected);
|
||||
});
|
||||
|
||||
xit('processes errors through error handler', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user