mirror of
https://codeberg.org/icewind/steam-resolve-vanity.git
synced 2026-06-03 17:14:06 +02:00
updates
This commit is contained in:
parent
0c3dcdefd4
commit
a561aed198
5 changed files with 866 additions and 317 deletions
|
|
@ -74,7 +74,7 @@ pub async fn get_vanity_url(steam_id: SteamID) -> Result<Option<String>, Error>
|
|||
#[cfg(test)]
|
||||
#[tokio::test]
|
||||
async fn test_valid() {
|
||||
let key = dotenv::var("STEAM_API_KEY").unwrap();
|
||||
let key = dotenvy::var("STEAM_API_KEY").unwrap();
|
||||
assert_eq!(
|
||||
Some(SteamID::from(76561198024494988)),
|
||||
resolve_vanity_url("icewind1991", &key).await.unwrap()
|
||||
|
|
@ -93,7 +93,7 @@ async fn test_invalid_key() {
|
|||
#[cfg(test)]
|
||||
#[tokio::test]
|
||||
async fn test_not_found() {
|
||||
let key = dotenv::var("STEAM_API_KEY").unwrap();
|
||||
let key = dotenvy::var("STEAM_API_KEY").unwrap();
|
||||
assert_eq!(
|
||||
None,
|
||||
resolve_vanity_url("hopefully_non_existing_steam_id", &key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue