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
13e7562c9d
|
@ -56,5 +56,13 @@ async fn guild_create_ban() {
|
|||
)
|
||||
.await
|
||||
.unwrap();
|
||||
assert!(Guild::create_ban(
|
||||
guild.id,
|
||||
other_user_id,
|
||||
GuildBanCreateSchema::default(),
|
||||
&mut bundle.user,
|
||||
)
|
||||
.await
|
||||
.is_err());
|
||||
common::teardown(bundle).await
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue