From bdfe1890e2babd46e41fb67112d1b5594f86c898 Mon Sep 17 00:00:00 2001 From: Skillz4Killz Date: Mon, 1 Nov 2021 15:58:10 +0000 Subject: [PATCH] change: prettier code --- tests/helpers/members/ban.ts | 18 ++++++++++++------ tests/mod.ts | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/tests/helpers/members/ban.ts b/tests/helpers/members/ban.ts index c08f93c1b..e10fa0df2 100644 --- a/tests/helpers/members/ban.ts +++ b/tests/helpers/members/ban.ts @@ -2,17 +2,23 @@ import { Bot } from "../../../src/bot.ts"; import { CreateGuildBan } from "../../../src/types/mod.ts"; export async function banTest(bot: Bot, t: Deno.TestContext, guildId: bigint, id: bigint, options?: CreateGuildBan) { - await bot.helpers.ban(guildId, 456226577798135808n) + await bot.helpers.ban(guildId, 456226577798135808n); } export async function getBansTest(bot: Bot, t: Deno.TestContext, guildId: bigint) { - await bot.helpers.getBans(guildId) + await bot.helpers.getBans(guildId); } -export async function banTestWReason(bot: Bot, t: Deno.TestContext, guildId: bigint, id: bigint, options?: CreateGuildBan) { - await bot.helpers.ban(guildId, 456226577798135808n, {reason: "Blame Wolf"}) +export async function banTestWReason( + bot: Bot, + t: Deno.TestContext, + guildId: bigint, + id: bigint, + options?: CreateGuildBan +) { + await bot.helpers.ban(guildId, 456226577798135808n, { reason: "Blame Wolf" }); } export async function unbanTest(bot: Bot, t: Deno.TestContext, guildId: bigint, id: bigint) { - await bot.helpers.unban(guildId, 456226577798135808n) -} \ No newline at end of file + await bot.helpers.unban(guildId, 456226577798135808n); +} diff --git a/tests/mod.ts b/tests/mod.ts index b85ea07a8..03eb8f6df 100644 --- a/tests/mod.ts +++ b/tests/mod.ts @@ -546,7 +546,7 @@ Deno.test("[Bot] - Starting Tests", async (t) => { t.step({ name: "[member] ban member from guild without reason", fn: async (t) => { - await banTestWReason(bot, t, guild.id, 456226577798135808n, {reason: "Blame Wolf"}); + await banTestWReason(bot, t, guild.id, 456226577798135808n, { reason: "Blame Wolf" }); }, ...sanitizeMode, }),