mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
change: prettier code
This commit is contained in:
committed by
GitHub Action
parent
2ce5ddf0b9
commit
f2c9d79a88
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user