Skip to content

Commit

Permalink
json parse lambda output
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfoyle committed Nov 29, 2023
1 parent 257ce66 commit 8453633
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ class DataStorageAuthWithTriggerTestProject extends TestProjectBase {
const response = await this.lambdaClient.send(
new InvokeCommand({ FunctionName: lambdas[0] })
);
const responsePayload = response.Payload?.transformToString();
const responsePayload = JSON.parse(
response.Payload?.transformToString() || ''
);

// check expected response
assert.equal(
Expand Down

0 comments on commit 8453633

Please sign in to comment.