Skip to content
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.

Angular-mocks failing unit test as $destroy method is not a function #13985

@darkmavis1980

Description

@darkmavis1980

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions