Node.js 咕噜+;手表&x2B;茉莉花工作一次,第二次失败
这是我的Grumodule.exports=函数(grunt){ 当我运行Node.js 咕噜+;手表&x2B;茉莉花工作一次,第二次失败,node.js,gruntjs,jasmine,Node.js,Gruntjs,Jasmine,这是我的Grumodule.exports=函数(grunt){ 当我运行$grunt test时: Running "coffee:compile" (coffee) task Running "jasmine_node:all" (jasmine_node) task mods ... [all good] Finished in 0.211 seconds 19 tests, 60 assertions, 0 failures Running "watch:test"
$grunt test
时:
Running "coffee:compile" (coffee) task
Running "jasmine_node:all" (jasmine_node) task
mods
... [all good]
Finished in 0.211 seconds
19 tests, 60 assertions, 0 failures
Running "watch:test" (watch) task
Waiting...
>> File "tests/mods.spec.js" changed. // I JUST ADDED A BLANK LINE
Running "coffee:compile" (coffee) task
Running "jasmine_node:all" (jasmine_node) task
...
[Some goods, other wrong]
Failures:
1) ...
2) ...
3) ..
Finished in 5.26 seconds
19 tests, 57 assertions, 3 failures
为什么?我必须说明我是用mockgoose来测试的
Running "coffee:compile" (coffee) task
Running "jasmine_node:all" (jasmine_node) task
mods
... [all good]
Finished in 0.211 seconds
19 tests, 60 assertions, 0 failures
Running "watch:test" (watch) task
Waiting...
>> File "tests/mods.spec.js" changed. // I JUST ADDED A BLANK LINE
Running "coffee:compile" (coffee) task
Running "jasmine_node:all" (jasmine_node) task
...
[Some goods, other wrong]
Failures:
1) ...
2) ...
3) ..
Finished in 5.26 seconds
19 tests, 57 assertions, 3 failures