Test for the view model

This commit is contained in:
David Baker
2025-02-06 14:02:14 +01:00
parent 6b238d1fdc
commit 87d44a7792
2 changed files with 115 additions and 0 deletions

View File

@@ -154,6 +154,7 @@ export function createTestClient(): MatrixClient {
resetEncryption: jest.fn(),
getSessionBackupPrivateKey: jest.fn().mockResolvedValue(null),
isSecretStorageReady: jest.fn().mockResolvedValue(false),
deleteKeyBackupVersion: jest.fn(),
}),
getPushActionsForEvent: jest.fn(),
@@ -192,6 +193,7 @@ export function createTestClient(): MatrixClient {
}),
mxcUrlToHttp: jest.fn().mockImplementation((mxc: string) => `http://this.is.a.url/${mxc.substring(6)}`),
setAccountData: jest.fn(),
deleteAccountData: jest.fn(),
setRoomAccountData: jest.fn(),
setRoomTopic: jest.fn(),
setRoomReadMarkers: jest.fn().mockResolvedValue({}),