1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-31 15:24:23 +03:00

Remove Crypto.start() (#2871)

This isn't really needed, and its semantics are poorly defined. (Contrary to
the comment, it dos *not* set background processes running).
This commit is contained in:
Richard van der Hoff
2022-11-14 10:01:05 +00:00
committed by GitHub
parent ba6a001d67
commit b40cf75c9d
4 changed files with 23 additions and 11 deletions

View File

@ -1122,4 +1122,22 @@ describe("Crypto", function() {
expect(free).toHaveBeenCalled();
});
});
describe("start", () => {
let client: TestClient;
beforeEach(async () => {
client = new TestClient("@alice:example.org", "aliceweb");
await client.client.initCrypto();
});
afterEach(async function() {
await client!.stop();
});
// start() is a no-op nowadays, so there's not much to test here.
it("should complete successfully", async () => {
await client!.client.crypto!.start();
});
});
});