CreateSecretStorageDialog: stop using deprecated APIs (#11635)

* Add some tests for `CreateSecretStorageDialog`

* CreateSecretStorageDialog: stop using deprecated APIs
This commit is contained in:
Richard van der Hoff 2023-09-22 13:03:05 +02:00 committed by GitHub
parent 11f258e62e
commit 6fd46f3bc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 830 additions and 28 deletions

View file

@ -65,7 +65,7 @@ export class MockClientWithEventEmitter extends EventEmitter {
});
* ```
*
* See also `stubClient()` which does something similar but uses a more complete mock client.
* See also {@link stubClient} which does something similar but uses a more complete mock client.
*/
export const getMockClientWithEventEmitter = (
mockProperties: Partial<Record<keyof MatrixClient, unknown>>,
@ -152,6 +152,7 @@ export const mockClientMethodsCrypto = (): Partial<
isKeyBackupKeyStored: jest.fn(),
getCrossSigningCacheCallbacks: jest.fn().mockReturnValue({ getCrossSigningKeyCache: jest.fn() }),
getStoredCrossSigningForUser: jest.fn(),
getKeyBackupVersion: jest.fn().mockResolvedValue(null),
secretStorage: { hasKey: jest.fn() },
getCrypto: jest.fn().mockReturnValue({
getUserDeviceInfo: jest.fn(),