fix: speed up unit tests by 50%

This commit is contained in:
Skillz4Killz
2022-05-08 17:38:56 +00:00
committed by GitHub
parent 50eeea5a1d
commit 1726680fde
15 changed files with 324 additions and 296 deletions
-13
View File
@@ -1,13 +0,0 @@
import { assertEquals } from "../deps.ts";
import { bot, guild } from "../mod.ts";
Deno.test("[channel] Get a channel", async () => {
const channel = await bot.helpers.createChannel(guild.id, {
name: "fetching",
});
const fetched = await bot.helpers.getChannel(channel.id);
assertEquals(channel.id, fetched.id);
assertEquals(channel.name, fetched.name);
});