The second approach, would be to rely on sinon-mongoose to do the heavylifting for us. ... ModelStub = sinon.stub(Model, 'fn'); 3 module.exports.
確定! 回上一頁