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 = {
|
res = {
|
||||||
headers: {},
|
headers: {},
|
||||||
writeHead: resWriteHead,
|
writeHead: resWriteHead,
|
||||||
|
write: jest.fn(),
|
||||||
end: resEnd,
|
end: resEnd,
|
||||||
setHeader: jest.fn(),
|
setHeader: jest.fn(),
|
||||||
getHeaderNames: jest.fn(() => []),
|
getHeaderNames: jest.fn(() => []),
|
||||||
|
|
Loading…
Reference in a new issue