mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: tests
This commit is contained in:
@@ -740,9 +740,10 @@ describe('Flags', function () {
|
|||||||
const category = await Categories.create({ name: 'private category' });
|
const category = await Categories.create({ name: 'private category' });
|
||||||
|
|
||||||
await Privileges.categories.rescind(['groups:topics:read'], category.cid, 'registered-users');
|
await Privileges.categories.rescind(['groups:topics:read'], category.cid, 'registered-users');
|
||||||
|
await Groups.join('private category', uid3);
|
||||||
const result = await Topics.post({
|
const result = await Topics.post({
|
||||||
cid: category.cid,
|
cid: category.cid,
|
||||||
uid: adminUid,
|
uid: uid3,
|
||||||
title: 'private topic',
|
title: 'private topic',
|
||||||
content: 'private post',
|
content: 'private post',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user