-
-
Notifications
You must be signed in to change notification settings - Fork 769
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make calledWith() assertions idempotent (#2407)
* Add failing test for idempotent calledWith * Make calledWith() assertions idempotent Previously, calledWith() modified the list of arguments (called and expected) in place, so that repeated calls to calledWith() assertions ended up being repeatedly escaped. This fixes that behavior, copying the arguments out of the spy's internal array before modifying them.
- Loading branch information
1 parent
383b083
commit e78a670
Showing
2 changed files
with
24 additions
and
12 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
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