The story thus far…
In part two we refactored the Faker object into a class. This allowed us to inject it into our Ancient faker module. So now how to we use this to our advantage?
Stubbing using Sinon
Standalone test spies, stubs and mocks for JavaScript.
Works with any