Make ban test a little more meaningful (#399)
By checking for an error on trying to ban the same person again, we can kind of gauge if the ban functionality actually works.
This commit is contained in:
commit
4e56181486
|
@ -56,5 +56,13 @@ async fn guild_create_ban() {
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
assert!(Guild::create_ban(
|
||||||
|
guild.id,
|
||||||
|
other_user_id,
|
||||||
|
GuildBanCreateSchema::default(),
|
||||||
|
&mut bundle.user,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.is_err());
|
||||||
common::teardown(bundle).await
|
common::teardown(bundle).await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue