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.

ngMock fails at $componentController after update from 1.4.8 to 1.5.0 #13969

Closed
@ctaepper

Description

@ctaepper

i have no idea whats up?

Error: [$injector:modulerr] Failed to instantiate module ngMock due to:
Error: [$injector:pget] Provider '$componentController' must define $get factory method.

FYI: tests are also working in 1.4.9

after some digging:
https://github.com/angular/angular.js/blob/v1.5.0/src/ngMock/angular-mocks.js#L2186
shouldn't this read this.$get = ....? after fixing that in the dist file, the tests are working

also, to clarify, I am running tests on module, which only consists of services and factories

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions