Sinon.js is included in Unit.JS, you can use Sinon.js with Unit.js. ... var callback = test.stub().returns(42);; var proxy = once(callback);; test.assert.
確定! 回上一頁