mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Merge branch 'master' of https://github.com/Skillz4Killz/Discordeno into next
This commit is contained in:
+7
-7
@@ -2,7 +2,6 @@ import { assert, assertEquals, delay } from "../deps.ts";
|
||||
import {
|
||||
botID,
|
||||
cache,
|
||||
Channel,
|
||||
createClient,
|
||||
createGuildChannel,
|
||||
createGuildRole,
|
||||
@@ -144,8 +143,8 @@ Deno.test({
|
||||
Deno.test({
|
||||
name: "edit a channel in a guild",
|
||||
async fn() {
|
||||
const channel = await editChannel(data.channelID, {
|
||||
name: "edited channel",
|
||||
await editChannel(data.channelID, {
|
||||
name: "edited-channel",
|
||||
overwrites: [
|
||||
{
|
||||
id: data.roleID,
|
||||
@@ -154,11 +153,12 @@ Deno.test({
|
||||
deny: ["USE_EXTERNAL_EMOJIS"],
|
||||
},
|
||||
],
|
||||
}) as Channel;
|
||||
});
|
||||
// Wait 5 seconds for it to update
|
||||
await delay(5000);
|
||||
const editedChannel = await getChannel(data.channelID);
|
||||
|
||||
assert(channel);
|
||||
assertEquals(editedChannel.name, "edited channel");
|
||||
assertEquals(editedChannel.name, "edited-channel");
|
||||
},
|
||||
});
|
||||
|
||||
@@ -247,7 +247,7 @@ Deno.test({
|
||||
Deno.test({
|
||||
name: "exit the process forcefully after all the tests are done",
|
||||
async fn() {
|
||||
Deno.exit(1);
|
||||
Deno.exit();
|
||||
},
|
||||
...testOptions,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user