test: fix failing test by adjusting the tests

This commit is contained in:
Julian Lam
2025-12-04 16:03:28 -05:00
parent f1d50c3510
commit c529244229

View File

@@ -359,8 +359,8 @@ describe('Privilege masking', () => {
await activitypub.actors.assertGroup([cid], { update: true });
// Ensure mask is gone from db
const exists = await db.exists(`cid:${cid}:privilegeMask`);
assert(!exists);
const memberCount = await db.setCount(`cid:${cid}:privilegeMask`);
assert.strictEqual(memberCount, 0);
can = await privileges.categories.can('topics:create', cid, uid);
assert(can, 'Privilege should be restored after mask removal.');
@@ -396,8 +396,8 @@ describe('Privilege masking', () => {
await activitypub.actors.assertGroup([cid], { update: true });
// Ensure mask is gone from db
const exists = await db.exists(`cid:${cid}:privilegeMask`);
assert(!exists);
const memberCount = await db.setCount(`cid:${cid}:privilegeMask`);
assert.strictEqual(memberCount, 0);
can = await privileges.categories.can('topics:create', cid, uid);
assert(can, 'Privilege should be restored after mask removal.');