Skip to content

Commit a44b968

Browse files
committed
Update integration tests to use new interface
1 parent f3f82b6 commit a44b968

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
expect(verifier.getShowSasCallbacks()).toBeNull();
174173

@@ -323,7 +322,7 @@ describe.each(Object.entries(CRYPTO_BACKENDS))("verification (%s)", (backend: st
323322
expect(request.chosenMethod).toEqual("m.reciprocate.v1");
324323

325324
// there should now be a verifier
326-
const verifier: VerificationBase = request.verifier!;
325+
const verifier: Verifier = request.verifier!;
327326
expect(verifier).toBeDefined();
328327
expect(verifier.getReciprocateQrCodeCallbacks()).toBeNull();
329328

0 commit comments

Comments
 (0)