What are the benefits and drawbacks of using jasmine mocks over real objects?
Jasmine is a popular testing framework for JavaScript that allows you to create mocks and spies for your code. Mocks and spies are fake objects that simulate the behavior and interactions of real objects, such as functions, classes, or modules. But why would you use them instead of real objects, and what are the trade-offs? In this article, we will explore the benefits and drawbacks of using jasmine mocks over real objects, and how to use them effectively in your tests.