阅读背景:

使用sinon.js创建一个基于真实构造函数/原型的间谍方法的“间谍对象”

来源:互联网 

I'm using sinon.js as a way to stub out dependencies in my Mocha tests. I prefer the 'spy' approach over a classic mock approach, as the introspection of the spy seems clearer and affords more flexibility than the somewhat backward-thinking with classic mock objects.I'm using sinon.js as a way to stub out depende




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: