You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Just tried to update angular on a project I'm working, and suddenly all the unit tests started to fail, simply because the $destroy method in angular-mocks is not a function anymore for some reasons.
That's a sample of the error I'm getting with Karma:
TypeError: injector.get(...).$destroy is not a function
at Object.<anonymous> (/app/bower_components/angular-mocks/angular-mocks.js:2612:34)
I tried to take a look at the source code and I couldn't find any $destroy function, but it might be inherited by other scripts and for some reason is not anymore accessible to angular-mocks.