We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4fa0f3 commit 8a2e7a6Copy full SHA for 8a2e7a6
test/unit/fix-request-body.spec.ts
@@ -73,7 +73,7 @@ describe('fixRequestBody', () => {
73
jest.spyOn(proxyRequest, 'setHeader');
74
jest.spyOn(proxyRequest, 'write');
75
76
- fixRequestBody(proxyRequest, { body: { someField: 'some value' } } as Request);
+ fixRequestBody(proxyRequest, { body: { someField: 'some value' } } as Request<express.Request>);
77
78
const expectedBody = querystring.stringify({ someField: 'some value' });
79
expect(proxyRequest.setHeader).toHaveBeenCalledWith('Content-Length', expectedBody.length);
0 commit comments