Sometimes your stubbed return values might be a little more complex and actually need some calculating or at least 'figuring out'. Let's have a look at how callbacks can help in these scenarios.
Lesson Branch: https://github.com/GaryClarke/test-doubles/tree/will-return-callback
2 comments