Use the same avatar colour when creating 1:1 DM rooms (#9850)

This commit is contained in:
Michael Weimann 2023-01-05 17:05:21 +01:00 committed by GitHub
parent ecfd1736e5
commit ab9152044c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 215 additions and 60 deletions

View file

@ -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);