Tuesday 25 June 2019

In Sinon, what do resolves and rejects mean? What is stubbing in its simplest term?

I’ve read articles on stubbing and mocking but I’m still unsure of what they are. If I’m stubbing a method called sendName and sendName.rejects({}) or sendName.resolves({}), what do they mean? Thanks in advance!

Submitted June 26, 2019 at 03:33AM by reddit_9810

No comments:

Post a Comment