Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e5eaecc

Browse files
committed
tests(ngMock): remove a broken jqLite cache clearing (#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 #16515 Refs #16512
1 parent 24ddbaf commit e5eaecc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/ngMock/angular-mocksSpec.js

-4
Original file line numberDiff line numberDiff line change
@@ -3206,10 +3206,6 @@ describe('sharedInjector', function() {
32063206
define();
32073207
sdescribe.root.run();
32083208
} finally {
3209-
// avoid failing testability for the additional
3210-
// injectors etc created
3211-
angular.element.cache = {};
3212-
32133209
// clear up
32143210
module.$$beforeAllHook = null;
32153211
module.$$afterAllHook = null;

0 commit comments

Comments
 (0)