Files
discordeno/tests/misc/getUser.test.ts
2022-05-31 14:22:12 +00:00

13 lines
322 B
TypeScript

import { assertEquals, assertExists } from "../deps.ts";
import { loadBot } from "../mod.ts";
Deno.test({
name: "[User] get a user and transform",
fn: async (t) => {
const bot = loadBot();
const user = await bot.helpers.getUser(bot.id);
assertExists(user?.id);
assertEquals(user.id, bot.id);
},
});