mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 11:01:20 +01:00
Merge branch 'master' into develop
This commit is contained in:
@@ -599,6 +599,20 @@ describe('Messaging Library', () => {
|
||||
const { roomId } = await api.users.getPrivateRoomId({ uid: mocks.users.foo.uid }, { uid: mocks.users.herp.uid });
|
||||
assert(roomId);
|
||||
});
|
||||
|
||||
it('should create a public chat room', async () => {
|
||||
const data = await api.chats.create({
|
||||
uid: mocks.users.foo.uid,
|
||||
session: {},
|
||||
}, {
|
||||
name: 'public room',
|
||||
type: 'public',
|
||||
uids: [],
|
||||
groups: ['registered-users'],
|
||||
});
|
||||
assert(data.roomId);
|
||||
assert.strictEqual(data.public, true);
|
||||
});
|
||||
});
|
||||
|
||||
describe('toMid', () => {
|
||||
|
||||
Reference in New Issue
Block a user