mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
* test: fix "Token not provided" error
* idk wtf
* Revert "idk wtf"
This reverts commit 26063aa127.
* https://open.spotify.com/track/3ZWc3Bm8eUMRRJhSWKHHeV 🔥🔥
21 lines
509 B
TypeScript
21 lines
509 B
TypeScript
import { defaultTestOptions, tempData } from "./01_main.test.ts";
|
|
import { assertExists, createServer, delay, Guild } from "./deps.ts";
|
|
|
|
Deno.test({
|
|
name: "[guild] create a new guild",
|
|
async fn() {
|
|
const guild = await createServer({
|
|
name: "Discordeno Test",
|
|
}) as Guild;
|
|
|
|
// Assertions
|
|
assertExists(guild);
|
|
|
|
tempData.guildID = guild.id;
|
|
|
|
// Delay the execution by 5 seconds to allow GUILD_CREATE event to be processed
|
|
await delay(5000);
|
|
},
|
|
...defaultTestOptions,
|
|
});
|