mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
stubbed isGuest for unit tests
This commit is contained in:
parent
2204e6c64e
commit
3f9f1d03c8
@ -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…
x
Reference in New Issue
Block a user