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:
Michał Gołębiowski-Owczarek
2018-03-28 13:20:42 +02:00
committed by Michał Gołębiowski-Owczarek
parent 24ddbafbdf
commit e5eaecc32b
-4
View File
@@ -3206,10 +3206,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;