fix(loading): potential race condition with showing and hiding loading in same watch cycle

This commit is contained in:
Perry Govier
2014-08-19 15:07:10 -05:00
parent 840c014b27
commit 65aece2aad
2 changed files with 6 additions and 2 deletions

View File

@@ -89,6 +89,7 @@ describe('$ionicLoading service', function() {
$timeout.flush();
expect(angular.element(document.body).hasClass('loading-active')).toBe(true);
loader.hide();
$timeout.flush();
expect(angular.element(document.body).hasClass('loading-active')).toBe(false);
}));