We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09a4765 commit 87ea70fCopy full SHA for 87ea70f
1 file changed
test/reporters/tap.js
@@ -209,12 +209,12 @@ test('write should call console.log', t => {
209
210
test('stdout and stderr should call process.stderr.write', t => {
211
const reporter = new TapReporter();
212
- const spy = sinon.spy(process.stderr, 'write');
+ const stub = sinon.stub(process.stderr, 'write');
213
214
reporter.stdout('result');
215
reporter.stderr('result');
216
217
- t.is(spy.callCount, 2);
218
process.stderr.write.restore();
+ t.is(stub.callCount, 2);
219
t.end();
220
});
0 commit comments