mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
test: add getChannels test
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
import { assertEquals } from "../deps.ts";
|
||||
import { bot, guild } from "../mod.ts";
|
||||
|
||||
Deno.test("[channel] Get all channels", async () => {
|
||||
await Promise.all([
|
||||
bot.helpers.createChannel(guild.id, { name: "first" }),
|
||||
bot.helpers.createChannel(guild.id, { name: "second" }),
|
||||
]);
|
||||
|
||||
const channels = await bot.helpers.getChannels(guild.id);
|
||||
|
||||
assertEquals(channels.size > 1, true);
|
||||
});
|
||||
Reference in New Issue
Block a user