mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2024-12-26 10:56:34 +00:00
adding lor_ranked_v1 get_leaderboards test
This commit is contained in:
parent
0e200a80fb
commit
85f156cab8
2 changed files with 8 additions and 0 deletions
2
test.bash
Normal file
2
test.bash
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
RGAPI_KEY="$(cat apikey.txt)" RUST_BACKTRACE=1 cargo test --features nightly
|
|
@ -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(())
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue