all are false anyways

This commit is contained in:
ITOH
2021-05-03 23:00:39 +02:00
parent 734e2af412
commit 0e4c3481b2
+2 -10
View File
@@ -10,8 +10,7 @@ import { assertEquals, assertExists } from "../deps.ts";
import { delayUntil } from "../util/delay_until.ts"; import { delayUntil } from "../util/delay_until.ts";
import { defaultTestOptions, tempData } from "../ws/start_bot.ts"; import { defaultTestOptions, tempData } from "../ws/start_bot.ts";
// TODO: whats save async function ifItFailsBlameWolf(options: CreateGuildChannel) {
async function ifItFailsBlameWolf(options: CreateGuildChannel, _save = false) {
const channel = await createChannel(tempData.guildId, options); const channel = await createChannel(tempData.guildId, options);
const cloned = await cloneChannel(channel.id); const cloned = await cloneChannel(channel.id);
@@ -51,7 +50,7 @@ async function ifItFailsBlameWolf(options: CreateGuildChannel, _save = false) {
Deno.test({ Deno.test({
name: "[channel] clone a new text channel", name: "[channel] clone a new text channel",
async fn() { async fn() {
await ifItFailsBlameWolf({ name: "Discordeno-clone-test" }, false); await ifItFailsBlameWolf({ name: "Discordeno-clone-test" });
}, },
...defaultTestOptions, ...defaultTestOptions,
}); });
@@ -64,7 +63,6 @@ Deno.test({
name: "Discordeno-clone-test", name: "Discordeno-clone-test",
type: DiscordChannelTypes.GUILD_CATEGORY, type: DiscordChannelTypes.GUILD_CATEGORY,
}, },
false,
); );
}, },
...defaultTestOptions, ...defaultTestOptions,
@@ -78,7 +76,6 @@ Deno.test({
name: "Discordeno-clone-test", name: "Discordeno-clone-test",
type: DiscordChannelTypes.GUILD_VOICE, type: DiscordChannelTypes.GUILD_VOICE,
}, },
false,
); );
}, },
...defaultTestOptions, ...defaultTestOptions,
@@ -93,7 +90,6 @@ Deno.test({
type: DiscordChannelTypes.GUILD_VOICE, type: DiscordChannelTypes.GUILD_VOICE,
bitrate: 32000, bitrate: 32000,
}, },
false,
); );
}, },
...defaultTestOptions, ...defaultTestOptions,
@@ -108,7 +104,6 @@ Deno.test({
type: DiscordChannelTypes.GUILD_VOICE, type: DiscordChannelTypes.GUILD_VOICE,
userLimit: 32, userLimit: 32,
}, },
false,
); );
}, },
...defaultTestOptions, ...defaultTestOptions,
@@ -122,7 +117,6 @@ Deno.test({
name: "Discordeno-clone-test", name: "Discordeno-clone-test",
rateLimitPerUser: 2423, rateLimitPerUser: 2423,
}, },
false,
); );
}, },
...defaultTestOptions, ...defaultTestOptions,
@@ -133,7 +127,6 @@ Deno.test({
async fn() { async fn() {
await ifItFailsBlameWolf( await ifItFailsBlameWolf(
{ name: "Discordeno-clone-test", nsfw: true }, { name: "Discordeno-clone-test", nsfw: true },
false,
); );
}, },
...defaultTestOptions, ...defaultTestOptions,
@@ -154,7 +147,6 @@ Deno.test({
}, },
], ],
}, },
false,
); );
}, },
...defaultTestOptions, ...defaultTestOptions,