我正在尝试使用 grunt-contrib-jasmine 槽命令行“grunt jasmine”运行测试,但它未能给出警告:“PhantomJS 无法加载您的页面。使用 --force 继续。”...
base.spec.js:
describe('Namespace',function(){
it('Provides the global *** object',function(){
expect(***).to.be.an('object');
expect(***).to.include.keys('App','Templates');
});
});
gruntfile.js 包括:
jasmine : {
src : ['apps/<%=target%>/js/**/*.js'],
options : {
host : 'http://127.0.0.1:5000',
specs : 'tests/<%=target%>/**/*spec.js',
}
},
.
.
.
grunt.loadNpmTasks('grunt-contrib-jasmine');
不明白怎么回事……
请帮忙,提前谢谢...