Let's take a step back and understand what mocks are and how to use them to facilitate testing in JavaScript.