Skip to content

Commit 8a2e7a6

Browse files
committed
test(fixRequestBody): fix broken test
1 parent e4fa0f3 commit 8a2e7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/fix-request-body.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('fixRequestBody', () => {
7373
jest.spyOn(proxyRequest, 'setHeader');
7474
jest.spyOn(proxyRequest, 'write');
7575

76-
fixRequestBody(proxyRequest, { body: { someField: 'some value' } } as Request);
76+
fixRequestBody(proxyRequest, { body: { someField: 'some value' } } as Request<express.Request>);
7777

7878
const expectedBody = querystring.stringify({ someField: 'some value' });
7979
expect(proxyRequest.setHeader).toHaveBeenCalledWith('Content-Length', expectedBody.length);

0 commit comments

Comments
 (0)