Skip to content

Commit ab2dc66

Browse files
committed
test: set correct form of bodyparser for json
1 parent e94517a commit ab2dc66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/e2e/http-proxy-middleware.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe('E2E http-proxy-middleware', () => {
105105
it('should proxy request body from json', async () => {
106106
agent = request(
107107
createApp(
108-
bodyParser.urlencoded({ extended: false }),
108+
bodyParser.json(),
109109
createProxyMiddleware('/api', {
110110
target: `http://localhost:${mockTargetServer.port}`,
111111
})

0 commit comments

Comments
 (0)