Skip to content

Commit

Permalink
Update integration tests to use new interface
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Jun 2, 2023
1 parent 957be66 commit 6bae4a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/integ/crypto/verification.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6bae4a6

Please sign in to comment.