Refactor and add tests to flagged messages.

This commit is contained in:
Blade Barringer
2015-11-03 08:00:14 -06:00
parent 24480e5f04
commit 1a68b5e9ee
4 changed files with 19 additions and 13 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ describe('GET /groups/:id', () => {
});
});
xit('TODO: Not yet implimented - includes user ids in flags object', () => {
it('includes user ids in flags object', () => {
return api.get(`/groups/${group._id}`).then((_group) => {
let chatWithOneFlag = _group.chat[2];
expect(chatWithOneFlag.id).to.eql(chat3.id);