Skip to content

Commit

Permalink
revoke protection after tests to avoid interfering with other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Oct 10, 2024
1 parent 4f1854a commit d7c8c61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/messageIsMediaProtectionTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ describe("Test: Message is media", function () {
});
this.afterEach(async function () {
await client.stop();
await getFirstReaction(client, this.mjolnir.managementRoomId, "✅", async () => {
return await client.sendMessage(this.mjolnir.managementRoomId, {
msgtype: "m.text",
body: `!mjolnir disable MessageIsMediaProtection`,
});
});
});

function delay(ms: number) {
Expand Down

0 comments on commit d7c8c61

Please sign in to comment.