mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
test: move token to main test
This commit is contained in:
+3
-3
@@ -32,9 +32,6 @@ import {
|
||||
unpin,
|
||||
} from "./deps.ts";
|
||||
|
||||
const token = Deno.env.get("DISCORD_TOKEN");
|
||||
if (!token) throw new Error("Token is not provided");
|
||||
|
||||
// Default options for tests
|
||||
export const defaultTestOptions: Partial<Deno.TestDefinition> = {
|
||||
sanitizeOps: false,
|
||||
@@ -54,6 +51,9 @@ export const tempData = {
|
||||
Deno.test({
|
||||
name: "[main] connect to gateway",
|
||||
async fn() {
|
||||
const token = Deno.env.get("DISCORD_TOKEN");
|
||||
if (!token) throw new Error("Token is not provided");
|
||||
|
||||
await startBot({
|
||||
token,
|
||||
intents: ["GUILD_MESSAGES", "GUILDS"],
|
||||
|
||||
Reference in New Issue
Block a user