cambsull / SteamWebAPILibrary

A JavaScript Library to make calls to the Steam Web API easier
https://cambsull.github.io/SteamWebAPILibrary/
MIT License
4 stars 2 forks source link

Tests are passing when key isn't passed #58

Open mdwiltfong opened 5 months ago

mdwiltfong commented 5 months ago

Since we aren't throwing an error when a Steam Key is not passed, jest is marking these tests as passing. As a result we need to properly handle this error so that these tests fail in the event that someone runs the tests and they haven't passed in a key.

https://github.com/mdwiltfong/SteamWebAPILibrary/actions/runs/9614104454/job/26518184185?pr=1

mdwiltfong commented 5 months ago

I'm assuming the fetch is undefined error will go away if the enviornment has a key