Use the same avatar colour when creating 1:1 DM rooms (#9850)
This commit is contained in:
parent
ecfd1736e5
commit
ab9152044c
8 changed files with 215 additions and 60 deletions
|
@ -33,8 +33,6 @@ jest.mock("../../../../src/components/structures/HomePage", () => ({
|
|||
}));
|
||||
|
||||
describe("UserOnboardingPage", () => {
|
||||
let restoreConsole: () => void;
|
||||
|
||||
const renderComponent = async (): Promise<RenderResult> => {
|
||||
const renderResult = render(<UserOnboardingPage />);
|
||||
await act(async () => {
|
||||
|
@ -43,12 +41,10 @@ describe("UserOnboardingPage", () => {
|
|||
return renderResult;
|
||||
};
|
||||
|
||||
beforeAll(() => {
|
||||
restoreConsole = filterConsole(
|
||||
// unrelated for this test
|
||||
"could not update user onboarding context",
|
||||
);
|
||||
});
|
||||
filterConsole(
|
||||
// unrelated for this test
|
||||
"could not update user onboarding context",
|
||||
);
|
||||
|
||||
beforeEach(() => {
|
||||
stubClient();
|
||||
|
@ -60,10 +56,6 @@ describe("UserOnboardingPage", () => {
|
|||
jest.restoreAllMocks();
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
restoreConsole();
|
||||
});
|
||||
|
||||
describe("when the user registered before the cutoff date", () => {
|
||||
beforeEach(() => {
|
||||
jest.spyOn(MatrixClientPeg, "userRegisteredAfter").mockReturnValue(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue