thegreenwebfoundation / co2.js

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services
Other
390 stars 49 forks source link

Use nock to mock the API response #51

Closed soulgalore closed 2 years ago

soulgalore commented 2 years ago

@mrchrisadams I think nock makes it easy to test the exact code in the hosting API.

50

mrchrisadams commented 2 years ago

Thanks for this @soulgalore - I had no idea Nock existed before this PR 👍