assert (callback.called) 断言。 下面这段代码判定函数被调用了一次:. it("calls the original function only once",function(){varcallback=sinon.spy ...
確定! 回上一頁