Files
discordeno/tests/misc/getUser.ts
Skillz4Killz 001afae921 fix: test bugs
2021-12-23 19:39:13 +00:00

13 lines
288 B
TypeScript

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