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
I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item
Version
generator-angular-fullstack
4.0.4
Node
4.4.5
npm
3.10.5
Operating System
OS X 10
etc
etc
Item
Answer
Transpiler
Babel
Markup
HTML
CSS
CSS
Router
ngRoute
Client Tests
Mocha
DB
SQL
Auth
N
etc
etc
Running gulp test:client on a new route created like so:
yo angular-fullstack:route about
produces the following error:
TypeError: Object is not a constructor (evaluating 'module('newProjectApp.about')')
at /Users/haazen/workspace/projects/Personal/newProject/spec.js:43133
Resolved by simply adding the following import to the spec file:
import about from './about.component';
and changing the beforeEach from:
beforeEach(module('newProjectApp.about'));
To:
beforeEach(angular.mock.module(about));
The text was updated successfully, but these errors were encountered:
Running gulp test:client on a new route created like so:
produces the following error:
Resolved by simply adding the following import to the spec file:
and changing the beforeEach from:
To:
The text was updated successfully, but these errors were encountered: