mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
This commit is contained in:
@@ -3,10 +3,10 @@ import { createChannel } from "../../src/helpers/channels/create_channel.ts";
|
||||
import { deleteChannel } from "../../src/helpers/channels/delete_channel.ts";
|
||||
import { defaultTestOptions, tempData } from "../ws/start_bot.ts";
|
||||
import { delayUntil } from "../util/delay_until.ts";
|
||||
import {editChannel} from "../../src/helpers/channels/edit_channel.ts";
|
||||
import {assertEquals} from "../deps.ts";
|
||||
import {getChannel} from "../../src/helpers/channels/get_channel.ts";
|
||||
import {botId} from "../../src/bot.ts";
|
||||
import { editChannel } from "../../src/helpers/channels/edit_channel.ts";
|
||||
import { assertEquals } from "../deps.ts";
|
||||
import { getChannel } from "../../src/helpers/channels/get_channel.ts";
|
||||
import { botId } from "../../src/bot.ts";
|
||||
|
||||
Deno.test({
|
||||
name: "[channel] get a channel",
|
||||
@@ -20,7 +20,7 @@ Deno.test({
|
||||
// Make sure the channel was created.
|
||||
if (!cache.channels.has(channel.id)) {
|
||||
throw new Error(
|
||||
"The channel should have been created but it is not in the cache.",
|
||||
"The channel should have been created but it is not in the cache.",
|
||||
);
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ Deno.test({
|
||||
await delayUntil(3000, () => cache.channels.has(channel.id));
|
||||
|
||||
assertEquals(
|
||||
cache.channels.has(channel.id),
|
||||
true,
|
||||
cache.channels.has(channel.id),
|
||||
true,
|
||||
);
|
||||
},
|
||||
...defaultTestOptions,
|
||||
|
||||
Reference in New Issue
Block a user