Files
discordeno/tests/local/snowflake.ts
T
Skillz4Killz ba3d222cb0 refactor
2021-10-29 16:32:57 +00:00

10 lines
291 B
TypeScript

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