From ec2c148681baa736516f5f8cce00239d2029dfd5 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 20 Dec 2024 16:32:52 +0100 Subject: [PATCH] test: add missing res.write() mock function --- tests/index.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/index.test.js b/tests/index.test.js index 6b335e9..30561aa 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -30,6 +30,7 @@ describe("SVR.JS Cache mod", () => { res = { headers: {}, writeHead: resWriteHead, + write: jest.fn(), end: resEnd, setHeader: jest.fn(), getHeaderNames: jest.fn(() => []),