You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
fix tests private field access
This commit is contained in:
@@ -69,7 +69,7 @@ describe("verification request integration tests with crypto layer", function()
|
|||||||
bobVerifier.verify();
|
bobVerifier.verify();
|
||||||
|
|
||||||
// XXX: Private function access (but it's a test, so we're okay)
|
// XXX: Private function access (but it's a test, so we're okay)
|
||||||
bobVerifier._endTimer();
|
bobVerifier.endTimer();
|
||||||
});
|
});
|
||||||
const aliceRequest = await alice.client.requestVerification("@bob:example.com");
|
const aliceRequest = await alice.client.requestVerification("@bob:example.com");
|
||||||
await aliceRequest.waitFor(r => r.started);
|
await aliceRequest.waitFor(r => r.started);
|
||||||
@@ -77,6 +77,6 @@ describe("verification request integration tests with crypto layer", function()
|
|||||||
expect(aliceVerifier).toBeInstanceOf(SAS);
|
expect(aliceVerifier).toBeInstanceOf(SAS);
|
||||||
|
|
||||||
// XXX: Private function access (but it's a test, so we're okay)
|
// XXX: Private function access (but it's a test, so we're okay)
|
||||||
aliceVerifier._endTimer();
|
aliceVerifier.endTimer();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ describe("self-verifications", () => {
|
|||||||
undefined, // startEvent
|
undefined, // startEvent
|
||||||
request,
|
request,
|
||||||
);
|
);
|
||||||
verification._resolve = () => undefined;
|
verification.resolve = () => undefined;
|
||||||
|
|
||||||
const result = await verification.done();
|
const result = await verification.done();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user