Use PassphraseFields in ExportE2eKeysDialog to enforce minimum passphrase complexity (#11222)

* Use PassphraseFields in ExportE2eKeysDialog to enforce minimum passphrase complexity

* Tweak copy

* Iterate

* Add tests

* Improve variable naming

* Improve coverage
This commit is contained in:
Michael Telatynski 2023-07-27 10:21:20 +01:00 committed by GitHub
parent b0317e6752
commit d405160080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 244 additions and 23 deletions

View file

@ -241,6 +241,7 @@ export function createTestClient(): MatrixClient {
joinRoom: jest.fn(),
getSyncStateData: jest.fn(),
getDehydratedDevice: jest.fn(),
exportRoomKeys: jest.fn(),
} as unknown as MatrixClient;
client.reEmitter = new ReEmitter(client);