mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(loading): potential race condition with showing and hiding loading in same watch cycle
This commit is contained in:
@@ -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);
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user