mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
test: one more test fix
This commit is contained in:
@@ -282,8 +282,13 @@ describe('API', async () => {
|
||||
await flags.appendNote(flagId, 1, 'test note', 1626446956652);
|
||||
await flags.create('post', 2, unprivUid, 'sample reasons', Date.now()); // for testing flag notes (since flag 1 deleted)
|
||||
|
||||
// Create a new chat room
|
||||
await messaging.newRoom(adminUid, { uids: [unprivUid] });
|
||||
// Create a new chat room & send a message
|
||||
const roomId = await messaging.newRoom(adminUid, { uids: [unprivUid] });
|
||||
await messaging.sendMessage({
|
||||
roomId,
|
||||
uid: adminUid,
|
||||
content: 'this is a chat message',
|
||||
});
|
||||
|
||||
// Create an empty file to test DELETE /files and thumb deletion
|
||||
fs.closeSync(fs.openSync(path.resolve(nconf.get('upload_path'), 'files/test.txt'), 'w'));
|
||||
|
||||
Reference in New Issue
Block a user