You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Update SecureBackupPanel
to use getCrypto()
(#11322)
`MatrixClient.crypto` is going away, so let's switch over to `getCrypto()`. There doesn't seem to be anything else relying on the `crypto` stub in `mockClientMethodsCrypto()`, so let's get rid of that.
This commit is contained in:
committed by
GitHub
parent
b284fbcc37
commit
ddb8e0aa3a
@ -155,10 +155,6 @@ export const mockClientMethodsCrypto = (): Partial<
|
||||
getStoredCrossSigningForUser: jest.fn(),
|
||||
checkKeyBackup: jest.fn().mockReturnValue({}),
|
||||
secretStorage: { hasKey: jest.fn() },
|
||||
crypto: {
|
||||
isSecretStorageReady: jest.fn(),
|
||||
getSessionBackupPrivateKey: jest.fn(),
|
||||
},
|
||||
getCrypto: jest.fn().mockReturnValue({
|
||||
getUserDeviceInfo: jest.fn(),
|
||||
getCrossSigningStatus: jest.fn().mockResolvedValue({
|
||||
@ -171,5 +167,7 @@ export const mockClientMethodsCrypto = (): Partial<
|
||||
},
|
||||
}),
|
||||
isCrossSigningReady: jest.fn().mockResolvedValue(true),
|
||||
isSecretStorageReady: jest.fn(),
|
||||
getSessionBackupPrivateKey: jest.fn(),
|
||||
}),
|
||||
});
|
||||
|
Reference in New Issue
Block a user