angular-fullstack / generator-angular-fullstack

Yeoman generator for an Angular app with an Express server
https://awk34.gitbook.io/generator-angular-fullstack
6.12k stars 1.24k forks source link

Fix required in contoller test #1974

Closed atomfried closed 8 years ago

atomfried commented 8 years ago

Hey there,

the generated contoller specs contain this line:

TestComponent = $componentController('TestComponent', {

The test always fails. It should be:

TestComponent = $componentController('test', {

Regards

M

atomfried commented 8 years ago

To be more specific: I'm talking about the angular-fullstack:route generator and I'm using angular-mocks 1.5.0.

Awk34 commented 8 years ago

Please fix and submit a PR to that repo: https://github.com/DaftMonk/generator-ng-component/blob/master/templates/route/name.controller.spec.js