From 6bae4a621e879f225de16e2e2d7ada841ff7face Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 2 Jun 2023 17:57:31 +0100 Subject: [PATCH] Update integration tests to use new interface --- spec/integ/crypto/verification.spec.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/integ/crypto/verification.spec.ts b/spec/integ/crypto/verification.spec.ts index 5656333ddb5..7440bdfaa04 100644 --- a/spec/integ/crypto/verification.spec.ts +++ b/spec/integ/crypto/verification.spec.ts @@ -18,9 +18,8 @@ import fetchMock from "fetch-mock-jest"; import { MockResponse } from "fetch-mock"; import { createClient, MatrixClient } from "../../../src"; -import { ShowQrCodeCallbacks, ShowSasCallbacks, VerifierEvent } from "../../../src/crypto-api/verification"; +import { ShowQrCodeCallbacks, ShowSasCallbacks, Verifier, VerifierEvent } from "../../../src/crypto-api/verification"; import { escapeRegExp } from "../../../src/utils"; -import { VerificationBase } from "../../../src/crypto/verification/Base"; import { CRYPTO_BACKENDS, InitCrypto } from "../../test-utils/test-utils"; import { SyncResponder } from "../../test-utils/SyncResponder"; import { @@ -168,7 +167,7 @@ describe.each(Object.entries(CRYPTO_BACKENDS))("verification (%s)", (backend: st expect(request.chosenMethod).toEqual("m.sas.v1"); // there should now be a verifier - const verifier: VerificationBase = request.verifier!; + const verifier: Verifier = request.verifier!; expect(verifier).toBeDefined(); // start off the verification process: alice will send an `accept` @@ -324,7 +323,7 @@ describe.each(Object.entries(CRYPTO_BACKENDS))("verification (%s)", (backend: st expect(request.chosenMethod).toEqual("m.reciprocate.v1"); // there should now be a verifier - const verifier: VerificationBase = request.verifier!; + const verifier: Verifier = request.verifier!; expect(verifier).toBeDefined(); // ... which we call .verify on, which emits a ShowReciprocateQr event