diff --git a/test/unit-tests/DeviceListener-test.ts b/test/unit-tests/DeviceListener-test.ts
index ad7f14e119..1c8fe1a1c7 100644
--- a/test/unit-tests/DeviceListener-test.ts
+++ b/test/unit-tests/DeviceListener-test.ts
@@ -352,13 +352,13 @@ describe("DeviceListener", () => {
mockCrypto!.getCrossSigningKeyId.mockResolvedValue("abc");
});
- it("shows set up encryption toast when user has a key backup available", async () => {
+ it("shows set up recovery toast when user has a key backup available", async () => {
// non falsy response
mockCrypto.getKeyBackupInfo.mockResolvedValue({} as unknown as KeyBackupInfo);
await createAndStart();
expect(SetupEncryptionToast.showToast).toHaveBeenCalledWith(
- SetupEncryptionToast.Kind.SET_UP_ENCRYPTION,
+ SetupEncryptionToast.Kind.SET_UP_RECOVERY,
);
});
});
diff --git a/test/unit-tests/components/structures/MatrixChat-test.tsx b/test/unit-tests/components/structures/MatrixChat-test.tsx
index bc6bb0f9ff..7e3bd7d4f1 100644
--- a/test/unit-tests/components/structures/MatrixChat-test.tsx
+++ b/test/unit-tests/components/structures/MatrixChat-test.tsx
@@ -148,6 +148,7 @@ describe("", () => {
whoami: jest.fn(),
logout: jest.fn(),
getDeviceId: jest.fn(),
+ getKeyBackupVersion: jest.fn(),
});
let mockClient: Mocked;
const serverConfig = {