This commit is contained in:
Robin Appelman 2025-05-30 16:55:10 +02:00
commit a561aed198
5 changed files with 866 additions and 317 deletions

View file

@ -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)