fix: enable cache plugin in tests

This commit is contained in:
Skillz4Killz
2021-11-12 22:13:18 +00:00
committed by GitHub
parent f337c5519d
commit 16d10245df
2 changed files with 5 additions and 2 deletions

View File

@@ -5,3 +5,4 @@ export {
assertNotEquals,
assertThrows,
} from "https://deno.land/std@0.113.0/testing/asserts.ts";
export * from "https://deno.land/x/discordeno_cache_plugin@0.0.3/mod.ts";

View File

@@ -5,10 +5,11 @@ import {
createEventHandlers,
DiscordChannelTypes,
DiscordOverwriteTypes,
setupBot,
startBot,
stopBot,
} from "../mod.ts";
import { assertEquals, assertExists } from "./deps.ts";
import { assertEquals, assertExists, enableCachePlugin } from "./deps.ts";
import { deleteMessageWithReasonTest, deleteMessageWithoutReasonTest } from "./helpers/messages/delete_message.ts";
import { getMessagesTest } from "./helpers/messages/get_messages.ts";
import { deleteMessagesWithoutReasonTest, deleteMessagesWithReasonTest } from "./helpers/messages/delete_messages.ts";
@@ -91,7 +92,8 @@ Deno.test({
isAsync: false,
},
});
setupBot(bot);
enableCachePlugin(bot);
await startBot(bot);
// Delay the execution to allow READY events to be processed