Mocking Dependencies in Unit Tests Using Partials
Channel: Jesse Warden
Date: 2017-09-24

We use function partials (partially applied applications) to mock our dependencies for our unit tests using Lodash's _.partial function.