This commit is contained in:
Skillz4Killz
2021-10-29 16:32:57 +00:00
committed by GitHub
parent 0dd9f9a497
commit ba3d222cb0
4 changed files with 14 additions and 14 deletions
@@ -1,6 +1,6 @@
import { Bot } from "../../src/bot.ts";
import { assertExists } from "../deps.ts";
import { delayUntil } from "../utils.ts";
import { Bot } from "../../../src/bot.ts";
import { assertExists } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
async function ifItFailsBlameWolf(bot: Bot, channelId: bigint, reason?: string) {
const message = await bot.helpers.sendMessage(channelId, "Hello World!");
+1 -9
View File
@@ -1,9 +1 @@
import { snowflakeToBigint } from "../mod.ts";
import { assertEquals } from "./deps.ts";
Deno.test("[Local Test] - snowflakeToBigint ", async (t) => {
const text = "130136895395987456";
const big = 130136895395987456n;
assertEquals(big, snowflakeToBigint(text));
});
import "./local/snowflake.ts";
+9
View File
@@ -0,0 +1,9 @@
import { snowflakeToBigint } from "../../src/util/bigint.ts";
import { assertEquals } from "../deps.ts";
Deno.test("[Local Test] - snowflakeToBigint ", async (t) => {
const text = "130136895395987456";
const big = 130136895395987456n;
assertEquals(big, snowflakeToBigint(text));
});
+1 -2
View File
@@ -1,8 +1,7 @@
import { TOKEN } from "../configs.ts";
import { createBot, createEventHandlers, DiscordChannelTypes, startBot, stopBot } from "../mod.ts";
import { assertEquals, assertExists } from "./deps.ts";
import { deleteMessageWithReasonTest } from "./messages/deleteMessage.ts";
import { deleteMessageWithoutReasonTest } from "./messages/deleteMessage.ts";
import { deleteMessageWithReasonTest, deleteMessageWithoutReasonTest } from "./helpers/messages/deleteMessage.ts";
import { delayUntil } from "./utils.ts";
// CONDUCT LOCAL TESTS FIRST BEFORE RUNNING API TEST