mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 12:48:52 +00:00
fix test timeout
This commit is contained in:
parent
2029cd884c
commit
e46f30894c
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue