chore: enable await-thenable

This commit is contained in:
Peter Steinberger
2026-04-10 19:59:58 +01:00
parent cdb944ef0a
commit 01113566fd
4 changed files with 5 additions and 6 deletions

View File

@@ -450,7 +450,7 @@ describe("MatrixCryptoBootstrapper", () => {
initiatedByMe: false,
accept: vi.fn(async () => {}),
};
await listener?.(verificationRequest);
listener?.(verificationRequest);
expect(deps.verificationManager.trackVerificationRequest).toHaveBeenCalledWith(
verificationRequest,
@@ -480,7 +480,7 @@ describe("MatrixCryptoBootstrapper", () => {
initiatedByMe: false,
accept: vi.fn(async () => {}),
};
await listener?.(verificationRequest);
listener?.(verificationRequest);
expect(verificationRequest.accept).not.toHaveBeenCalled();
});