You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Call the AsJson forms of import and exportRoomKeys (#12233)
This commit is contained in:
@@ -71,10 +71,10 @@ describe("ImportE2eKeysDialog", () => {
|
||||
const cli = createTestClient();
|
||||
const onFinished = jest.fn();
|
||||
const file = new File(["test"], "file.txt", { type: "text/plain" });
|
||||
const importRoomKeys = jest.fn();
|
||||
const importRoomKeysAsJson = jest.fn();
|
||||
cli.getCrypto = () => {
|
||||
return {
|
||||
importRoomKeys,
|
||||
importRoomKeysAsJson,
|
||||
} as unknown as CryptoApi;
|
||||
};
|
||||
|
||||
@@ -90,6 +90,6 @@ describe("ImportE2eKeysDialog", () => {
|
||||
await userEvent.paste("passphrase");
|
||||
fireEvent.click(container.querySelector("[type=submit]")!);
|
||||
|
||||
await waitFor(() => expect(importRoomKeys).toHaveBeenCalled());
|
||||
await waitFor(() => expect(importRoomKeysAsJson).toHaveBeenCalled());
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user