I want to stub process.env.FOO
with bar
.
var sinon = require('sinon');
var stub = sinon.stub(process.env, 'FOO', 'bar');
I'm confused. I read document, but still I don't understand yet.sinonjs docs
sinonjs is one example, not sinonjs is okay.