Files
discordeno/tests/webhooks/deleteWebhook.ts
Skillz4Killz ef5b25b319 test: fix unit tests related to code bugs (#2001)
* fix: get tests runnable

* fix: tests are now passing

* fix: 32 passing tests

* fix: deno fmt u dumb dumb work automatically for once in your life

* fix: 54 tests passing now

* fix: 94 passing, itoh was wrong he guess wrong hehe

* fix: remove debug logs

* fix: remove broken webhook test for now

Co-authored-by: ITOH <to@itoh.at>
2022-02-06 15:56:56 +00:00

9 lines
239 B
TypeScript

import { bot, channel } from "../mod.ts";
Deno.test("[webhooks] Delete a webhook", async () => {
const webhook = await bot.helpers.createWebhook(channel.id, {
name: "natico",
});
await bot.helpers.deleteWebhook(webhook.id);
});