adding lor_ranked_v1 get_leaderboards test

This commit is contained in:
Mingwei Samuel 2020-01-26 14:42:02 -08:00
parent 0e200a80fb
commit 85f156cab8
2 changed files with 8 additions and 0 deletions

2
test.bash Normal file
View file

@ -0,0 +1,2 @@
#!/bin/bash
RGAPI_KEY="$(cat apikey.txt)" RUST_BACKTRACE=1 cargo test --features nightly

View file

@ -73,5 +73,11 @@ async_tests!{
rassert!(!m.participants.is_empty(), "Match should have participants.");
Ok(())
},
// LOR
lor_ranked_get_leaderboards: async {
let future = RIOT_API.lor_ranked_v1().get_leaderboards(Region::AMERICAS);
let _leaderboard = future.await.map_err(|e| e.to_string())?;
Ok(())
},
}
}