Wrong branch :/
This commit is contained in:
David Baker
2026-07-02 15:44:41 +01:00
parent eeb97a4386
commit 68ae2d5c3b
@@ -6,6 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
Please see LICENSE files in the repository root for full details.
*/
import "fake-indexeddb/auto";
import React, { type ComponentProps, createRef, type RefObject } from "react";
import { fireEvent, render, type RenderResult, screen, waitFor, within, act } from "jest-matrix-react";
import { type Mocked, mocked } from "jest-mock-vitest-adapter";
@@ -644,6 +645,8 @@ describe("<MatrixChat />", () => {
describe("when login succeeds", () => {
beforeEach(() => {
//localStorage.setItem("mx_access_token", accessToken);
jest.spyOn(StorageAccess, "idbLoad").mockImplementation(
async (_table: string, key: string | string[]) => (key === "mx_access_token" ? accessToken : null),
);