From 48667b2201220a3bb38dbcedae62df6b5f3e1bb4 Mon Sep 17 00:00:00 2001 From: Sascha Goebel Date: Mon, 30 Nov 2015 13:56:47 +0100 Subject: [PATCH] Mock setHeader to avoid multiple done() calls. --- test/mocks/request.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/mocks/request.js b/test/mocks/request.js index b2b2da7b8..01314c6e0 100644 --- a/test/mocks/request.js +++ b/test/mocks/request.js @@ -12,6 +12,7 @@ var http = require('http'); function MockRequest() { sinon.stub(this, 'end'); sinon.stub(this, 'write'); + sinon.stub(this, 'setHeader'); this.log = sinon.stub(this.log); } -util.inherits(MockRequest, http.ClientRequest); \ No newline at end of file +util.inherits(MockRequest, http.ClientRequest);