mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 16:00:07 +00:00
13 lines
322 B
TypeScript
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);
|
|
},
|
|
});
|