fix(tests): getActiveThreads should not edit first

This commit is contained in:
Skillz4Killz
2022-06-15 15:33:23 +00:00
committed by GitHub
parent 4263b7b787
commit db29251f92
@@ -16,11 +16,6 @@ Deno.test("[thread] Get active threads", async (t) => {
const threadMessage = await bot.helpers.sendMessage(thread.id, { content: "message in a bottle" });
assertExists(threadMessage.id);
const edited = await bot.helpers.editChannel(thread.id, {
archived: true,
});
assertNotEquals(thread.archived, edited.archived);
const activeThreads = await bot.helpers.getActiveThreads(CACHED_COMMUNITY_GUILD_ID);
assertEquals(Boolean(activeThreads.threads.size), true);