zmb3 / spotify

A Go wrapper for the Spotify Web API
Apache License 2.0
1.37k stars 287 forks source link

Add unit test example for clientcreds #103

Closed jonatasbaldin closed 4 years ago

jonatasbaldin commented 4 years ago

Hi there πŸ‘‹

This PR adds an example on how to mock the spotify.Client for testing with a full description on a blog post I wrote.

Hope it helps people starting with the library ✨

zmb3 commented 4 years ago

Thanks for taking the time to send this PR, and to write up that blog post. Good stuff.

The mocking example you provide is a great strategy for testing any API client, but I don’t see anything specific to this library that would require it to live in the codebase, so I’m going to close this.

Thanks again :+1:

jonatasbaldin commented 4 years ago

Alright, thanks for the reply πŸ˜„ the library is great!