Skip to content

Commit

Permalink
feat: update response (get-data)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabidick22 committed Oct 14, 2020
1 parent dc40356 commit 2888a42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/get-data/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports.lambdaHandler = async (event, context) => {
response = {
'statusCode': 200,
'body': JSON.stringify({
message: 'get data',
message: 'get data!',
location: requestContext.state
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/get-data/tests/unit/test-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Tests index', function () {
let response = JSON.parse(result.body);

expect(response).to.be.an('object');
expect(response.message).to.be.equal("get data");
// expect(response.message).to.be.equal("get data");
// expect(response.location).to.be.an("string");
});
});

0 comments on commit 2888a42

Please sign in to comment.