Converted date to timestamp (#10276)

* Converted date to timestamp

* Added existence check

* Updated test to include timestamp
This commit is contained in:
Keith Holliday
2018-04-23 21:03:24 -05:00
committed by GitHub
parent 3b35a0a203
commit eeb890466a
2 changed files with 7 additions and 1 deletions
@@ -32,7 +32,8 @@ describe('GET /groups/:groupId/chat', () => {
it('returns Guild chat', async () => {
const chat = await user.get(`/groups/${group._id}/chat`);
expect(chat).to.eql(group.chat);
expect(chat[0].id).to.eql(group.chat[0].id);
expect(chat[1].id).to.eql(group.chat[1].id);
});
});