Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit e26245b

Browse files
committed
Remove initCrypto mocking
1 parent 99a2f63 commit e26245b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/MatrixClientPeg-test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,10 @@ describe("MatrixClientPeg", () => {
8383
it("should initialise the rust crypto library by default", async () => {
8484
const mockSetValue = jest.spyOn(SettingsStore, "setValue").mockResolvedValue(undefined);
8585

86-
const mockInitCrypto = jest.spyOn(testPeg.safeGet(), "initCrypto").mockResolvedValue(undefined);
8786
const mockInitRustCrypto = jest.spyOn(testPeg.safeGet(), "initRustCrypto").mockResolvedValue(undefined);
8887

8988
const cryptoStoreKey = new Uint8Array([1, 2, 3, 4]);
9089
await testPeg.start({ rustCryptoStoreKey: cryptoStoreKey });
91-
expect(mockInitCrypto).not.toHaveBeenCalled();
9290
expect(mockInitRustCrypto).toHaveBeenCalledWith({ storageKey: cryptoStoreKey });
9391

9492
// we should have stashed the setting in the settings store

0 commit comments

Comments
 (0)