Ng-mock: $compileProvider doesn't have method 'preAssignBindingsEnabled`
问题 I've been rewriting directives in Angular 1.5.8 to components. I want to write unit tests with '$componentController` just like described here: https://docs.angularjs.org/guide/component. The problem is that I'm getting error at this line: var ctrl = $componentController('componentName', null, bindings); saying: undefined is not a constructor (evaluating 'compileProvider.preAssignBindingsEnabled()') app/lib/angular-mocks/angular-mocks.js:2235:80 So it looks like $compileProvider doesn't have