Files
discordeno/tests/02_guild.test.ts
Ayyan 6f21de2a3a test: attempt to fix "Token not provided" error (#384)
* test: fix "Token not provided" error

* idk wtf

* Revert "idk wtf"

This reverts commit 26063aa127.

* https://open.spotify.com/track/3ZWc3Bm8eUMRRJhSWKHHeV 🔥🔥
2021-01-15 15:03:54 +04:00

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,
});