Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.7.1
->1.0.0
Release Notes
chaijs/chai-spies
v1.0.0
Compare Source
This is a major release which introduces many new featues, such as sandboxes, as well as new convenience methods and assertions.
This major release also comes with some breaking changes:
Breaking Changes
removed
reset
method. #35 (@stalniy)You will need to update any callsites to
spy.reset()
to instead assign a new spy to that variable or property.exposes original function body in
spy.toString
calls #93 (@stalniy)If you check the
spy.toString()
output in your tests, this will need to be changed to accomodate for this change.Features
added spy.returns #35 (@stalniy)
Allows to create spies that return constant value
added spy.on #61 (#38, @stalniy)
Allows to add spies on existing methods
added posibility to replace original method when spying with
spy.on
#68 (#62, @stalniy)added spy.restore #61 (#38, @stalniy)
Allows to remove spies added by
spy.on
and restore original method implementationadded support for sanboxes #61 (#38, @stalniy)
Now it's possible to create sanboxes and track/restore spies in sandbox
added support for
nth
call checks #75 (#59, @cnexans)Allows to check spy arguments on specified call
Bug Fixes
.with
when multiple identical arguments are passed in spy call #56 (#45, @meeber)Documentation
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.