DEV Community

Discussion on: The difference between mocks and stubs, explained with JS

Collapse
 
rossmawd profile image
Ross Mawdsley

In your mocks example - should 'userMock' be being passed to purchaseItemsFromCard() instead of 'user' ...which I don't believe exists in this scope?