You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
stubbed isGuest for unit tests
This commit is contained in:
@ -36,6 +36,7 @@ describe("<TextualBody />", () => {
|
|||||||
MatrixClientPeg.matrixClient = {
|
MatrixClientPeg.matrixClient = {
|
||||||
getRoom: () => mkStubRoom("room_id"),
|
getRoom: () => mkStubRoom("room_id"),
|
||||||
getAccountData: () => undefined,
|
getAccountData: () => undefined,
|
||||||
|
isGuest: () => false,
|
||||||
};
|
};
|
||||||
|
|
||||||
const ev = mkEvent({
|
const ev = mkEvent({
|
||||||
@ -59,6 +60,7 @@ describe("<TextualBody />", () => {
|
|||||||
MatrixClientPeg.matrixClient = {
|
MatrixClientPeg.matrixClient = {
|
||||||
getRoom: () => mkStubRoom("room_id"),
|
getRoom: () => mkStubRoom("room_id"),
|
||||||
getAccountData: () => undefined,
|
getAccountData: () => undefined,
|
||||||
|
isGuest: () => false,
|
||||||
};
|
};
|
||||||
|
|
||||||
const ev = mkEvent({
|
const ev = mkEvent({
|
||||||
@ -83,6 +85,7 @@ describe("<TextualBody />", () => {
|
|||||||
MatrixClientPeg.matrixClient = {
|
MatrixClientPeg.matrixClient = {
|
||||||
getRoom: () => mkStubRoom("room_id"),
|
getRoom: () => mkStubRoom("room_id"),
|
||||||
getAccountData: () => undefined,
|
getAccountData: () => undefined,
|
||||||
|
isGuest: () => false,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -135,6 +138,7 @@ describe("<TextualBody />", () => {
|
|||||||
getHomeserverUrl: () => "https://my_server/",
|
getHomeserverUrl: () => "https://my_server/",
|
||||||
on: () => undefined,
|
on: () => undefined,
|
||||||
removeListener: () => undefined,
|
removeListener: () => undefined,
|
||||||
|
isGuest: () => false,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user