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
Closed
Description
#13433 introduced $rootScope
clean-up after each test. The implementation assumes that $rootScope
will always have a $destroy()
method, which might not be true for a mocked/decorated $rootScope
, resulting in an error.
Also discussed in #13985 (comment).