Jasmine test does not see AngularJS module

后端 未结 2 650
说谎
说谎 2020-12-29 21:04

I am trying to unit test an Angular service with a Jasmine spec file. This requires that a module be loaded. Here is a simple spec designed in an attempt to simply load the

2条回答
  •  死守一世寂寞
    2020-12-29 21:33

    Make sure you include http://code.angularjs.org/1.1.0/angular-mocks.js for the angular-jasmine-helper functions like module.

提交回复
热议问题