Skip to content

Commit feee36c

Browse files
authored
tests(ngMock): remove a broken jqLite cache clearing (angular#16515)
This commit removes the resetting of `angular.element.cache` in some tests; this was desynchronizing jqLite.cache & the local jqCache variable and since some parts of the code use one of them and some the other one, it was breaking JQLite._data. `angular.element.cache` doesn't even exist when jQuery 2+ is used. Closes angular#16515 Refs angular#16512
1 parent 983e27b commit feee36c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: test/ngMock/angular-mocksSpec.js

-4
Original file line numberDiff line numberDiff line change
@@ -3123,10 +3123,6 @@ describe('sharedInjector', function() {
31233123
define();
31243124
sdescribe.root.run();
31253125
} finally {
3126-
// avoid failing testability for the additional
3127-
// injectors etc created
3128-
angular.element.cache = {};
3129-
31303126
// clear up
31313127
module.$$beforeAllHook = null;
31323128
module.$$afterAllHook = null;

0 commit comments

Comments
 (0)