Skip to content

Commit

Permalink
test: fixed python lambda test (#6922)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarkarachi authored Mar 20, 2021
1 parent 45e0246 commit 5ad36f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/amplify-e2e-tests/src/__tests__/function_3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ describe('python function tests', () => {
const payload = '{"test":"event"}';
await amplifyPushAuth(projRoot);
const response = await functionCloudInvoke(projRoot, { funcName, payload });
expect(JSON.parse(response.Payload.toString())).toEqual(JSON.parse(JSON.stringify(helloWorldSuccessOutput)));
const helloWorldSuccessOutputCloud = {
...helloWorldSuccessOutput,
body: JSON.stringify(helloWorldSuccessOutput.body),
};
expect(JSON.parse(response.Payload.toString())).toEqual(JSON.parse(JSON.stringify(helloWorldSuccessOutputCloud)));
});
});

Expand Down

0 comments on commit 5ad36f9

Please sign in to comment.