使用Sinon,我们可以使用test-doubles替换任何javascript函数,并提供很多方便测试的配置。 Sinon中 test-doubles 分三类:. Spies,提供了函数调用的信息 ...
確定! 回上一頁