Skip to content

Commit

Permalink
adds a new message to GET /data response (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarneyjr authored Oct 3, 2022
1 parent a1807e2 commit 4f612d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/handlers/api/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports.handler = async (event, context) => {
}).promise();
const res = {
items: data.Items,
message: 'hello, world!',
};
return res;
};
1 change: 1 addition & 0 deletions src/handlers/api/data.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe('src/handlers/api/data.js', async () => {
const res = await handler();
expect(res).deep.equals({
items: [{ id: '123' }],
message: 'hello, world!',
});
sinon.assert.calledOnceWithExactly(dbc.scan, {
TableName: 'dummy',
Expand Down

0 comments on commit 4f612d2

Please sign in to comment.