forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ngMock): invoke nested calls to
module()
immediately
Before 1.3, it was possible to call `angular.mock.module()` from inside another module. After this version additional calls were just ignored. It is helpful to be able to do this since a test may have helper functions that need to access "config"-time things such as constants or providers, and without this change it is difficult to get hold of the `$provide` object from within those helpers. Closes angular#12887
- Loading branch information
1 parent
f02811f
commit 51a27c0
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters