Add delete_channel test.

This commit is contained in:
bitfl0wer 2023-05-28 23:04:56 +02:00
parent 7b7dbb9b5e
commit 7f6ed72068
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 15 additions and 0 deletions

View File

@ -21,3 +21,18 @@ async fn get_channel() {
); );
common::teardown(bundle).await 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());
}