mardi 9 juin 2020

What is the difference between sinon stub.restore and stub.reset

When cleaning up, after creating a stub with sinon, you can restore or reset it. Can someone explain to me what the difference between these two are? Or when to use restore and when to use reset?

Aucun commentaire:

Enregistrer un commentaire