Merge branch 'release' into develop

This commit is contained in:
Matteo Pagliazzi
2018-02-04 14:39:30 +01:00

View File

@@ -1,5 +1,6 @@
import {
createAndPopulateGroup,
sleep,
} from '../../../../helpers/api-v3-integration.helper';
describe('POST /groups/:id/chat/seen', () => {
@@ -28,6 +29,8 @@ describe('POST /groups/:id/chat/seen', () => {
const initialNotifications = guildMember.notifications.length;
await guildMember.post(`/groups/${guild._id}/chat/seen`);
await sleep(0.5);
let guildThatHasSeenChat = await guildMember.get('/user');
expect(guildThatHasSeenChat.notifications.length).to.equal(initialNotifications - 1);