Add delete_channel test.
This commit is contained in:
parent
1fb3ef6766
commit
7a1c9b1f90
|
@ -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());
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue