fix(api): removed missing properties from personalstats
This commit is contained in:
parent
e5a766b893
commit
1c9b4123c3
4 changed files with 25 additions and 10 deletions
|
|
@ -9,8 +9,9 @@ pub(super) mod test {
|
|||
use crate::{
|
||||
executor::{ExecutorExt, ReqwestClient},
|
||||
models::{
|
||||
faction_selection_name::FactionSelectionNameVariant, AttackCode,
|
||||
PersonalStatsCategoryEnum, PersonalStatsStatName, UserListEnum,
|
||||
faction_selection_name::FactionSelectionNameVariant,
|
||||
user_selection_name::UserSelectionNameVariant, AttackCode, PersonalStatsCategoryEnum,
|
||||
PersonalStatsStatName, UserListEnum, UserPersonalStatsPopular,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
@ -918,6 +919,25 @@ pub(super) mod test {
|
|||
.unwrap();
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn user_personalstats_popular() {
|
||||
let client = test_client().await;
|
||||
|
||||
let resp = client
|
||||
.user()
|
||||
.for_selections(|b| {
|
||||
b.selections([UserSelectionNameVariant::Personalstats])
|
||||
.cat(PersonalStatsCategoryEnum::Popular)
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
assert!(resp
|
||||
.user_personal_stats_response()
|
||||
.unwrap()
|
||||
.is_user_personal_stats_popular());
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn user_personalstats_for_id() {
|
||||
let client = test_client().await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue