Test singular role
This commit is contained in:
parent
7d321798ee
commit
7c358c338f
|
@ -34,3 +34,16 @@ async fn create_and_get_roles() {
|
|||
assert_eq!(role, expected);
|
||||
common::teardown(bundle).await
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn get_singular_role() {
|
||||
let mut bundle = common::setup().await;
|
||||
let guild_id = &bundle.guild.id.to_string();
|
||||
let role_id = &bundle.role.id.to_string();
|
||||
let role = bundle.role.clone();
|
||||
let same_role = chorus::types::RoleObject::get(&mut bundle.user, guild_id, role_id)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(role, same_role);
|
||||
common::teardown(bundle).await
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue