This commit is contained in:
Skillz4Killz
2021-10-29 16:19:02 +00:00
committed by GitHub
parent 6f6099abc6
commit 846ef0a977
2 changed files with 12 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
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));
});
+3
View File
@@ -5,6 +5,9 @@ import { deleteMessageWithReasonTest } from "./messages/deleteMessage.ts";
import { deleteMessageWithoutReasonTest } from "./messages/deleteMessage.ts";
import { delayUntil } from "./utils.ts";
// CONDUCT LOCAL TESTS FIRST BEFORE RUNNING API TEST
import "./local.ts";
Deno.test("[Bot] - Starting Tests", async (t) => {
let startedAt = 0;
const bot = createBot({