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
This commit is contained in:
committed by
GitHub
parent
983e27b628
commit
feee36c8c9
Vendored
-4
@@ -3123,10 +3123,6 @@ describe('sharedInjector', function() {
|
||||
define();
|
||||
sdescribe.root.run();
|
||||
} finally {
|
||||
// avoid failing testability for the additional
|
||||
// injectors etc created
|
||||
angular.element.cache = {};
|
||||
|
||||
// clear up
|
||||
module.$$beforeAllHook = null;
|
||||
module.$$afterAllHook = null;
|
||||
|
||||
Reference in New Issue
Block a user