0
我使用Grunt和grunt-contrib-jasmine启动茉莉花测试。茉莉花。模块是不确定的,即使使用角度模拟
我的配置在Gruntfile:
jasmine : {
src : ['src/main/webapp/app/js/controllers/*.js'],
options: {
specs: 'src/main/webapp/specs/*spec.js',
vendor: '/src/main/webapp/app/lib/angular.min.js',
helpers: '/src/main/webapp/specs/helpers/angular-mocks.js'
}
}
但grunt:jasmine
后,我得到错误“的ReferenceError:Can't find variable: module
我怎样才能解决这个问题?