test: move token to main test

This commit is contained in:
ayntee
2021-01-27 22:20:30 +04:00
parent c3d7235918
commit c87f4f8000
+3 -3
View File
@@ -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"],