insight REST API retry

This commit is contained in:
Matias Alejo Garcia 2014-06-05 12:18:54 -03:00
commit da7c2c88db
8 changed files with 65 additions and 48 deletions

View file

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