Skip to content

Commit

Permalink
Merge pull request #31 from fabidick22/test-feat
Browse files Browse the repository at this point in the history
feat: update response (get-data)
  • Loading branch information
fabidick22 committed Oct 14, 2020
2 parents 67b638f + 2888a42 commit c877d9f
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 c877d9f

Please sign in to comment.