From 7f6ed720680dc4156794b9b60d499865a8815e5c Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sun, 28 May 2023 23:04:56 +0200 Subject: [PATCH] Add delete_channel test. --- tests/channel.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/channel.rs b/tests/channel.rs index 4e0db28..a162d41 100644 --- a/tests/channel.rs +++ b/tests/channel.rs @@ -21,3 +21,18 @@ async fn get_channel() { ); common::teardown(bundle).await } + +#[tokio::test] +async fn delete_channel() { + let mut bundle = common::setup().await; + let result = bundle + .channel + .delete( + &bundle.user.token, + bundle.instance.urls.get_api(), + &mut bundle.user.limits, + &mut bundle.instance.limits, + ) + .await; + assert!(result.is_none()); +}