test: fix brackets

This commit is contained in:
Barış Soner Uşaklı
2023-05-03 15:48:15 -04:00
parent 80bcd93829
commit 0c20d7cdee

View File

@@ -737,7 +737,7 @@ describe('Groups', () => {
const uid1 = await User.create({ username: utils.generateUUID().slice(0, 8) }); const uid1 = await User.create({ username: utils.generateUUID().slice(0, 8) });
const uid2 = await User.create({ username: utils.generateUUID().slice(0, 8) }); const uid2 = await User.create({ username: utils.generateUUID().slice(0, 8) });
await assert.rejects(apiGroups.join({ uid: uid1 }, { slug: 'test', uid: uid2 }, { message: '[[error:not-allowed]]' })); await assert.rejects(apiGroups.join({ uid: uid1 }, { slug: 'test', uid: uid2 }), { message: '[[error:not-allowed]]' });
}); });
it('should allow admins to join private groups', async () => { it('should allow admins to join private groups', async () => {