Test ForwardDialog
Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
parent
b9b237fc9a
commit
74925b2c6d
2 changed files with 126 additions and 1 deletions
|
@ -218,7 +218,7 @@ export function mkMessage(opts) {
|
|||
return mkEvent(opts);
|
||||
}
|
||||
|
||||
export function mkStubRoom(roomId = null) {
|
||||
export function mkStubRoom(roomId = null, name) {
|
||||
const stubTimeline = { getEvents: () => [] };
|
||||
return {
|
||||
roomId,
|
||||
|
@ -254,6 +254,7 @@ export function mkStubRoom(roomId = null) {
|
|||
on: jest.fn(),
|
||||
removeListener: jest.fn(),
|
||||
getDMInviter: jest.fn(),
|
||||
name,
|
||||
getAvatarUrl: () => 'mxc://avatar.url/room.png',
|
||||
getMxcAvatarUrl: () => 'mxc://avatar.url/room.png',
|
||||
isSpaceRoom: jest.fn(() => false),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue