stubbed isGuest for unit tests
This commit is contained in:
parent
2204e6c64e
commit
3f9f1d03c8
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,7 @@ describe("<TextualBody />", () => {
|
|||
MatrixClientPeg.matrixClient = {
|
||||
getRoom: () => mkStubRoom("room_id"),
|
||||
getAccountData: () => undefined,
|
||||
isGuest: () => false,
|
||||
};
|
||||
|
||||
const ev = mkEvent({
|
||||
|
@ -59,6 +60,7 @@ describe("<TextualBody />", () => {
|
|||
MatrixClientPeg.matrixClient = {
|
||||
getRoom: () => mkStubRoom("room_id"),
|
||||
getAccountData: () => undefined,
|
||||
isGuest: () => false,
|
||||
};
|
||||
|
||||
const ev = mkEvent({
|
||||
|
@ -83,6 +85,7 @@ describe("<TextualBody />", () => {
|
|||
MatrixClientPeg.matrixClient = {
|
||||
getRoom: () => mkStubRoom("room_id"),
|
||||
getAccountData: () => undefined,
|
||||
isGuest: () => false,
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -135,6 +138,7 @@ describe("<TextualBody />", () => {
|
|||
getHomeserverUrl: () => "https://my_server/",
|
||||
on: () => undefined,
|
||||
removeListener: () => undefined,
|
||||
isGuest: () => false,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue