RunKit + npm: sinon

node v10.24.1
endpointsharetweet
var sinon = require("sinon") var object = { get test() { return 1; }, set test(value) { } }; var stub = sinon.stub(object, "test"); console.log(stub.wrappedMethod)
Created from: https://npm.runkit.com/sinon
Loading…