fix: improve unit tests style

This commit is contained in:
Skillz4Killz
2021-11-22 16:34:30 +00:00
committed by GitHub
parent 70e9ef29ac
commit d23ff868c7
46 changed files with 1048 additions and 545 deletions
+11
View File
@@ -0,0 +1,11 @@
import { assertEquals } from "../deps.ts";
import { bot, guild } from "../mod.ts";
Deno.test({
name: "[Role] get all roles on a server",
fn: async (t) => {
const roles = await bot.helpers.getRoles(guild.id);
assertEquals(bot.cache.guilds.get(guild.id)?.roles.size, roles.size);
},
});