From 3064e2779587972dc064090eda583c00470ee40d Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Tue, 22 Oct 2024 10:50:21 +0100 Subject: [PATCH] Cleanup a few imports from other tests. --- test/integration/protectedRoomsConfigTest.ts | 3 +-- test/integration/standardConsequenceTest.ts | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/test/integration/protectedRoomsConfigTest.ts b/test/integration/protectedRoomsConfigTest.ts index 82694205..578bdfe9 100644 --- a/test/integration/protectedRoomsConfigTest.ts +++ b/test/integration/protectedRoomsConfigTest.ts @@ -4,10 +4,9 @@ import { MatrixSendClient } from "../../src/MatrixEmitter"; import { Mjolnir } from "../../src/Mjolnir"; import PolicyList from "../../src/models/PolicyList"; import { newTestUser } from "./clientHelper"; -import { createBanList, getFirstReaction } from "./commands/commandUtils"; +import { createBanList } from "./commands/commandUtils"; async function createPolicyList(client: MatrixClient): Promise { - const serverName = new UserID(await client.getUserId()).domain; const policyListId = await client.createRoom({ preset: "public_chat" }); return new PolicyList(policyListId, Permalinks.forRoom(policyListId), client); } diff --git a/test/integration/standardConsequenceTest.ts b/test/integration/standardConsequenceTest.ts index eea8d636..3981ce82 100644 --- a/test/integration/standardConsequenceTest.ts +++ b/test/integration/standardConsequenceTest.ts @@ -1,9 +1,6 @@ -import { strict as assert } from "assert"; - import { Mjolnir } from "../../src/Mjolnir"; import { Protection } from "../../src/protections/IProtection"; -import { newTestUser, noticeListener } from "./clientHelper"; -import { matrixClient, mjolnir } from "./mjolnirSetupUtils"; +import { newTestUser } from "./clientHelper"; import { ConsequenceBan, ConsequenceRedact } from "../../src/protections/consequence"; describe("Test: standard consequences", function () {