Skip to content

Commit

Permalink
fix(apiGatewayProxyResultMock): set empty string as default value for…
Browse files Browse the repository at this point in the history
… body of apiGatewayProxyResultM
  • Loading branch information
martinmicunda committed May 31, 2019
1 parent 624c99a commit d5713cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const apiGatewayProxyResultMock = (
statusCode = 200
): APIGatewayProxyResult => ({
statusCode,
body: JSON.stringify(body || '{}'),
body: body ? JSON.stringify(body) : '',
headers: headers || undefined,
});

Expand Down

0 comments on commit d5713cd

Please sign in to comment.