Mocking Dependencies in Unit Tests Using Sinon
Channel: Jesse Warden
Date: 2017-09-23

I cover mocking the request object in Node so your unit tests are actual unit tests instead of integration tests, and work whether wireless is on or not. This makes them more deterministic.