This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngMock breaks during clean-up with mocked $rootScope #14106
#13433 introduced
$rootScopeclean-up after each test. The implementation assumes that$rootScopewill always have a$destroy()method, which might not be true for a mocked/decorated$rootScope, resulting in an error.Also discussed in #13985 (comment).