mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 13:09:41 +00:00
v3: fix tests
This commit is contained in:
parent
95aff08de3
commit
8276ffcfe2
1 changed files with 8 additions and 4 deletions
|
|
@ -173,16 +173,20 @@ describe('Post /groups/:groupId/invite', () => {
|
|||
});
|
||||
|
||||
it('invites a user to a group by email', async () => {
|
||||
await expect(inviter.post(`/groups/${group._id}/invite`, {
|
||||
let res = await inviter.post(`/groups/${group._id}/invite`, {
|
||||
emails: [testInvite],
|
||||
inviter: 'inviter name',
|
||||
})).to.exist;
|
||||
});
|
||||
|
||||
expect(res).to.exist;
|
||||
});
|
||||
|
||||
it('invites multiple users to a group by email', async () => {
|
||||
await expect(inviter.post(`/groups/${group._id}/invite`, {
|
||||
let res = await inviter.post(`/groups/${group._id}/invite`, {
|
||||
emails: [testInvite, {name: 'test2', email: 'test2@habitica.com'}],
|
||||
})).to.exist;
|
||||
});
|
||||
|
||||
expect(res).to.exist;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue