mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-15 19:08:17 +00:00
fix: improve unit tests style
This commit is contained in:
@@ -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);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user