mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
feat: flag notes API + tests
This commit is contained in:
@@ -167,7 +167,8 @@ describe('API', async () => {
|
||||
mocks.delete['/posts/{pid}/diffs/{timestamp}'][1].example = (await posts.diffs.list(unprivTopic.postData.pid))[0];
|
||||
|
||||
// Create a sample flag
|
||||
await flags.create('post', 1, unprivUid, 'sample reasons', Date.now());
|
||||
const { flagId } = await flags.create('post', 1, unprivUid, 'sample reasons', Date.now());
|
||||
await flags.appendNote(flagId, 1, 'test note', 1626446956652);
|
||||
|
||||
// Create a new chat room
|
||||
await messaging.newRoom(1, [2]);
|
||||
|
||||
Reference in New Issue
Block a user