mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
all are false anyways
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user