mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fmt files damn son
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { defaultTestOptions, tempData } from "../ws/start_bot.ts";
|
||||
import {assertEquals} from "../deps.ts";
|
||||
import { assertEquals } from "../deps.ts";
|
||||
import { cache } from "../../src/cache.ts";
|
||||
import { delayUntil } from "../util/delay_until.ts";
|
||||
import {botId} from "../../src/bot.ts";
|
||||
import {getRoles} from "../../src/helpers/roles/get_roles.ts";
|
||||
import { botId } from "../../src/bot.ts";
|
||||
import { getRoles } from "../../src/helpers/roles/get_roles.ts";
|
||||
|
||||
Deno.test({
|
||||
name: "[role] get roles",
|
||||
@@ -12,9 +12,16 @@ Deno.test({
|
||||
|
||||
await getRoles(tempData.guildId);
|
||||
|
||||
await delayUntil(10000, () => cache.members.get(botId)?.guilds.get(tempData.guildId).roles.length > 0);
|
||||
await delayUntil(
|
||||
10000,
|
||||
() =>
|
||||
cache.members.get(botId)?.guilds.get(tempData.guildId).roles.length > 0,
|
||||
);
|
||||
|
||||
assertEquals(cache.members.get(botId)?.guilds.get(tempData.guildId).roles.length > 0, true);
|
||||
assertEquals(
|
||||
cache.members.get(botId)?.guilds.get(tempData.guildId).roles.length > 0,
|
||||
true,
|
||||
);
|
||||
},
|
||||
...defaultTestOptions,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user