Skip to content

Commit 67c23d0

Browse files
committed
Parse body
1 parent b14761c commit 67c23d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/apps/mooc_backend/features/step_definitions/controller.steps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Given('I send a GET request to {string}', (route: string) => {
1313
Given('I send a PUT request to {string} with body:', (route: string, body: string) => {
1414
_request = request(app)
1515
.put(route)
16-
.send(body);
16+
.send(JSON.parse(body));
1717
});
1818

1919
Then('the response status code should be {int}', async (status: number) => {

0 commit comments

Comments
 (0)