mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 05:04:57 +08:00
pass in userId with room in test
This commit is contained in:
parent
0dd860242a
commit
b9bbb7ee16
@ -84,7 +84,7 @@ ConferenceCall.prototype._getConferenceUserRoom = function() {
|
||||
preset: "private_chat",
|
||||
invite: [this.confUserId]
|
||||
}).then(function(res) {
|
||||
return new Room(res.room_id);
|
||||
return new Room(res.room_id, client.getUserId());
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user