Skip to content

Error during Karma Test #10

@timofeysie

Description

@timofeysie

Hi,

I am using the gameController for a new project. It runs fine in the browser, but causes the following error when running ‘npm test’:

INFO [Chrome 40.0.2214 (Mac OS X 10.10.0)]: Connected on socket yxapCTVGyRn7TJwqqawn
Chrome 40.0.2214 (Mac OS X 10.10.0) ERROR
    Uncaught TypeError: Cannot set property 'GameController' of undefined
    at /Users/tim/angular/games/mitch/app/components/gamecontroller.js:71
Chrome 40.0.2214 (Mac OS X 10.10.0) ERROR
    Uncaught TypeError: Cannot set property 'GameController' of undefined
at /Users/tim/angular/games/mitch/app/components/gamecontroller.min.js:1

I am using the standard Angular Seed as a starting point for the app. Any help would be great, as it would be nice to get the unit test running again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions