Skip to content

Commit 53b487f

Browse files
committed
Update integration tests to use new interface
1 parent c9817e4 commit 53b487f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spec/integ/crypto/verification.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ import fetchMock from "fetch-mock-jest";
1818
import { MockResponse } from "fetch-mock";
1919

2020
import { createClient, MatrixClient } from "../../../src";
21-
import { ShowQrCodeCallbacks, ShowSasCallbacks, VerifierEvent } from "../../../src/crypto-api/verification";
21+
import { ShowQrCodeCallbacks, ShowSasCallbacks, Verifier, VerifierEvent } from "../../../src/crypto-api/verification";
2222
import { escapeRegExp } from "../../../src/utils";
23-
import { VerificationBase } from "../../../src/crypto/verification/Base";
2423
import { CRYPTO_BACKENDS, InitCrypto } from "../../test-utils/test-utils";
2524
import { SyncResponder } from "../../test-utils/SyncResponder";
2625
import {
@@ -168,7 +167,7 @@ describe.each(Object.entries(CRYPTO_BACKENDS))("verification (%s)", (backend: st
168167
expect(request.chosenMethod).toEqual("m.sas.v1");
169168

170169
// there should now be a verifier
171-
const verifier: VerificationBase = request.verifier!;
170+
const verifier: Verifier = request.verifier!;
172171
expect(verifier).toBeDefined();
173172

174173
// start off the verification process: alice will send an `accept`
@@ -324,7 +323,7 @@ describe.each(Object.entries(CRYPTO_BACKENDS))("verification (%s)", (backend: st
324323
expect(request.chosenMethod).toEqual("m.reciprocate.v1");
325324

326325
// there should now be a verifier
327-
const verifier: VerificationBase = request.verifier!;
326+
const verifier: Verifier = request.verifier!;
328327
expect(verifier).toBeDefined();
329328

330329
// ... which we call .verify on, which emits a ShowReciprocateQr event

0 commit comments

Comments
 (0)