Merge pull request #565 from matiu/feature/reconnectInsight

insight REST API retry
This commit is contained in:
Gustavo Maximiliano Cortez 2014-06-05 14:54:52 -03:00
commit 69e31e2a79
7 changed files with 63 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);
});
});