-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use sinon stub.withArgs() instead of onFirstCall
Thanks to a great suggestion from @StuAA78 we can use `withArgs()` to control responding differently to the two calls, rather than relying on our knowledge of the implementation. Always a better approach.
- Loading branch information
1 parent
b48eb7e
commit 9a7c031
Showing
1 changed file
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters