Files
discordeno/tests/misc/getUser.ts
ITOH 81f8e0377c style: move to deno fmt (#1992)
* Create deno.json

* run format

* run format

* ci: only check formatting

* f

* Update settings.json

* Update settings.json
2022-02-04 15:00:04 +01:00

13 lines
288 B
TypeScript

import { assertEquals, assertExists } 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);
},
});