Skip to content

Commit

Permalink
test(fixRequestBody): fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Mar 20, 2022
1 parent e4fa0f3 commit 8a2e7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/fix-request-body.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('fixRequestBody', () => {
jest.spyOn(proxyRequest, 'setHeader');
jest.spyOn(proxyRequest, 'write');

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

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

0 comments on commit 8a2e7a6

Please sign in to comment.