Files
discordeno/tests/helpers/misc/user.ts
2021-11-02 19:50:24 +00:00

10 lines
283 B
TypeScript

import { Bot } from "../../../src/bot.ts";
import { assertExists } from "../../deps.ts";
export async function getUserTests(bot: Bot, t: Deno.TestContext) {
const user = await bot.helpers.getUser(bot.id);
assertExists(user);
assertExists(bot.transformers.user(bot, user));
}