test: add missing res.write() mock function
This commit is contained in:
parent
633cff1235
commit
ec2c148681
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ describe("SVR.JS Cache mod", () => {
|
|||
res = {
|
||||
headers: {},
|
||||
writeHead: resWriteHead,
|
||||
write: jest.fn(),
|
||||
end: resEnd,
|
||||
setHeader: jest.fn(),
|
||||
getHeaderNames: jest.fn(() => []),
|
||||
|
|
Loading…
Reference in a new issue