Testing a Controller

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

AngularJS provides helpers for convenient testing of your application. In this lesson you will learn how to test a basic controller with Jasmine and Angular.

Michael
~ 8 years ago

ReferenceError: 'module' is undefined at Anonymous function (http://localhost:63342/ngArchitecture-02-sub-modules/src/spec/PlayerSpec.js:50:9) at addSpecsToSuite (http://localhost:63342/ngArchitecture-02-sub-modules/src/bower_components/jasmine-core/lib/jasmine-core/jasmine.js:867:9) at describe (http://localhost:63342/ngArchitecture-02-sub-modules/src/bower_components/jasmine-core/lib/jasmine-core/jasmine.js:836:7) at jasmineInterface.describe (http://localhost:63342/ngArchitecture-02-sub-modules/src/bower_components/jasmine-core/lib/jasmine-core/jasmine.js:3576:7) at Anonymous function (http://localhost:63342/ngArchitecture-02-sub-modules/src/spec/PlayerSpec.js:48:5) at addSpecsToSuite (http://localhost:63342/ngArchitecture-02-sub-modules/src/bower_components/jasmine-core/lib/jasmine-core/jasmine.js:867:9) at describe (http://localhost:63342/ngArchitecture-02-sub-modules/src/bower_components/jasmine-core/lib/jasmine-core/jasmine.js:836:7) at jasmineInterface.describe (http://localhost:63342/ngArchitecture-02-sub-modules/src/bower_components/jasmine-core/lib/jasmine-core/jasmine.js:3576:7) at Global code (http://localhost:63342/ngArchitecture-02-sub-modules/src/spec/PlayerSpec.js:1:1)