mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
fix: enable cache plugin in tests
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user