mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
test fix for test 14
This commit is contained in:
+6
-5
@@ -144,8 +144,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 +154,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");
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user