diff --git a/spec/unit/crypto.spec.ts b/spec/unit/crypto.spec.ts index 333868c78..e8a95370c 100644 --- a/spec/unit/crypto.spec.ts +++ b/spec/unit/crypto.spec.ts @@ -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(); + }); + }); }); diff --git a/src/client.ts b/src/client.ts index 316e554c0..9b545540e 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1200,7 +1200,6 @@ export class MatrixClient extends TypedEventEmitter