forked from sinonjs/sinon
-
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.
Fix sinonjs#1274: spy.withArgs(args...).callCount is incorrect
1. Update matchingFake function in spy.js Rename to matchingFakes, and return not last one fake (pop()) but all fakes matched. 2. Move matchingFakes function into spyApi Because of calling by stub.js 3. Modify spyApi.invoke function Apply processing at function invoked to all matching fakes. 4. Modify part of calling matchingFake() in spyApi.withArgs Fit logic, affected by 1. 5. Update proto.create.functionStub in stub.js Try to get the function stub using spyApi.matchingFakes() and pop(), affected by 1.
- Loading branch information
takasmiley
committed
Mar 2, 2017
1 parent
2e9bb09
commit a55ec1d
Showing
2 changed files
with
46 additions
and
24 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