insight REST API retry
This commit is contained in:
parent
1a1b235aef
commit
da7c2c88db
8 changed files with 65 additions and 48 deletions
|
|
@ -103,15 +103,12 @@ describe("Unit: Controllers", function() {
|
|||
it('should check blockChainStatus', function() {
|
||||
$httpBackend.expectGET(GH);
|
||||
$httpBackend.flush();
|
||||
rootScope.blockChainStatus='error';
|
||||
rootScope.insightError=1;
|
||||
scope.$apply();
|
||||
expect(rootScope.insightError).equal(1);
|
||||
rootScope.blockChainStatus='ok';
|
||||
scope.$apply();
|
||||
expect(rootScope.insightError).equal(1);
|
||||
rootScope.blockChainStatus='restored';
|
||||
scope.$apply();
|
||||
expect(rootScope.insightError).equal(0);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue