From ebecd4ddfcebf180522535a4579e49f9a5b8e4e1 Mon Sep 17 00:00:00 2001 From: Andreas Wittmann Date: Thu, 14 Oct 2021 16:27:03 +0200 Subject: [PATCH] add res.setHeader stub --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 0406c81..2ee170f 100644 --- a/src/index.js +++ b/src/index.js @@ -43,6 +43,7 @@ export const mockRes = (options = {}) => { sendFile: sinon.stub().returns(ret), sendStatus: sinon.stub().returns(ret), set: sinon.stub().returns(ret), + setHeader: sinon.stub().returns(ret), status: sinon.stub().returns(ret), type: sinon.stub().returns(ret), vary: sinon.stub().returns(ret),