简单的说,Sinon允许你去替换代码中复杂的部分,以此来简化你的测试代码。 ... it('should do something with stubs', sinon.test(function() { var ...
確定! 回上一頁