Skip to content

Commit

Permalink
fix(list): wrap checkins in data property
Browse files Browse the repository at this point in the history
  • Loading branch information
geekus committed Aug 29, 2016
1 parent cb98658 commit ebb7cd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ router.get('/lister/:liste/stats', notImplementedYet);
router.get('/lister/:liste/logg', (req, res) => {
Checkin.getCheckinsForList(req.params.liste)
.then(checkins => {
res.json({ checkins });
res.json({ data: { checkins } });
});
});

Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('POST /lister/:liste/*', () => {
.set('X-User-Token', 'abc123')
.expect(200)
.end((req, res) => {
assert.equal(res.body.checkins.length, 2);
assert.equal(res.body.data.checkins.length, 2);
done();
});
});
Expand Down

0 comments on commit ebb7cd5

Please sign in to comment.