pass in userId with room in test
This commit is contained in:
parent
0dd860242a
commit
b9bbb7ee16
2 changed files with 9 additions and 8 deletions
|
@ -20,15 +20,16 @@ function generateRoomId() {
|
|||
return '!' + Math.random().toString().slice(2, 10) + ':domain';
|
||||
}
|
||||
|
||||
function createRoom(opts) {
|
||||
const room = new Room(generateRoomId());
|
||||
if (opts) {
|
||||
Object.assign(room, opts);
|
||||
}
|
||||
return room;
|
||||
}
|
||||
|
||||
describe('RoomList', () => {
|
||||
function createRoom(opts) {
|
||||
const room = new Room(generateRoomId(), client.getUserId());
|
||||
if (opts) {
|
||||
Object.assign(room, opts);
|
||||
}
|
||||
return room;
|
||||
}
|
||||
|
||||
let parentDiv = null;
|
||||
let sandbox = null;
|
||||
let client = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue