A related question:
this is a exported method:
exports.get_key = function(jrec, cb) {
}
and in another js I tried to stub out this method
var service = require('./services/services')
var stub = sinon.stub(services)
stub.get_key = yields("XYZ"); // this should work, but not accepting
a jrec argument
//callsArgWith(index, arg1, arg2, ...)
how to set stub.get_key to have method with these arguments:
function(jrec, cb)
?