Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
spork testunit与摩卡一起失败_Spork - Fatal编程技术网

spork testunit与摩卡一起失败

spork testunit与摩卡一起失败,spork,Spork,我发现spork测试单元使用mocha模拟/存根失败。 但是,如果我在没有spork的情况下运行相同的测试,它工作良好,并且所有测试都通过 它给出如下错误 1) Failure: .... not all expectations were satisfied unsatisfied expectations: - expected exactly once, not yet invoked: #<AnyInstance:User(id: integer, ... 有没有人有同样的经历

我发现spork测试单元使用mocha模拟/存根失败。 但是,如果我在没有spork的情况下运行相同的测试,它工作良好,并且所有测试都通过

它给出如下错误

 1) Failure:
....
not all expectations were satisfied
unsatisfied expectations:
- expected exactly once, not yet invoked: #<AnyInstance:User(id: integer, ...
有没有人有同样的经历

看起来彼此不太合拍,但我会试试这个