mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: additional test for remote category topic assertion when ignoring category
This commit is contained in:
@@ -192,6 +192,23 @@ describe('Notes', () => {
|
||||
|
||||
await topics.markAllRead(uid);
|
||||
});
|
||||
|
||||
it('should not show up in recent/unread if I am ignoring the remote category', async () => {
|
||||
await api.categories.setWatchState({ uid }, {
|
||||
cid: remoteCid,
|
||||
state: categories.watchStates.ignoring,
|
||||
uid,
|
||||
});
|
||||
|
||||
const { id, note } = helpers.mocks.note({
|
||||
cc: [remoteCid],
|
||||
});
|
||||
const assertion = await activitypub.notes.assert(0, id);
|
||||
assert(assertion);
|
||||
|
||||
const unread = await topics.getTotalUnread(uid);
|
||||
assert.strictEqual(unread, 0);
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user