Skip to content

Commit

Permalink
remove TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Bregwin Jogi committed Jun 1, 2024
1 parent 0756cf7 commit 1165419
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ module.exports.createSuccessResponse = function (data) {
* }
*/
module.exports.createErrorResponse = function (code, message) {
// TODO ...
return {
status: 'error',
error: {
Expand Down
1 change: 0 additions & 1 deletion src/routes/api/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const { createSuccessResponse } = require('../../response');
* Get a list of fragments for the current user
*/
module.exports = (req, res) => {
// TODO: this is just a placeholder. To get something working, return an empty array...

res.status(200).json(
createSuccessResponse({
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/get.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ describe('GET /v1/fragments', () => {
expect(Array.isArray(res.body.fragments)).toBe(true);
});

// TODO: we'll need to add tests to check the contents of the fragments array later

});

0 comments on commit 1165419

Please sign in to comment.