change: prettier code

This commit is contained in:
Skillz4Killz
2021-11-04 01:17:50 +00:00
committed by GitHub Action
parent 2ce5ddf0b9
commit f2c9d79a88
4 changed files with 16 additions and 14 deletions
+7 -1
View File
@@ -3,7 +3,13 @@ import { DiscordenoChannel } from "../../../src/transformers/channel.ts";
import { assertExists, assertEquals } from "../../deps.ts";
import { delayUntil } from "../../utils.ts";
export async function cloneChannelTests(bot: Bot, guildId: bigint, channel: DiscordenoChannel, options: {reason?: string}, t: Deno.TestContext) {
export async function cloneChannelTests(
bot: Bot,
guildId: bigint,
channel: DiscordenoChannel,
options: { reason?: string },
t: Deno.TestContext
) {
const cloned = await bot.helpers.cloneChannel(channel.id, options.reason);
//Assertations
+7 -7
View File
@@ -1,7 +1,7 @@
import { memoryBenchmarks } from "../benchmarks/index.ts";
import { TOKEN } from "../configs.ts";
import {
channelOverwriteHasPermission,
channelOverwriteHasPermission,
createBot,
createEventHandlers,
DiscordChannelTypes,
@@ -556,26 +556,26 @@ Deno.test({
name: "[channel] edit a channel permission overwrite",
async fn() {
await channelOverwriteHasPermissionTest(bot, guild.id, t);
}
},
}),
t.step({
name: "[channel] clone a channel w/o a reason",
async fn() {
await cloneChannelTests(bot, guild.id, channel, {}, t);
}
},
}),
t.step({
name: "[channel] clone a channel w a reason",
async fn() {
await cloneChannelTests(bot, guild.id, channel, { reason: "Blame wolf"}, t);
}
await cloneChannelTests(bot, guild.id, channel, { reason: "Blame wolf" }, t);
},
}),
t.step({
name: "[channel] delete a channel overwrite",
async fn() {
await deleteChannelOverwriteTests(bot, guild.id, t);
}
})
},
}),
]);
// ALL TEST RELATED TO INVITES