Update chai-spies to the latest version 🚀 #33
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.
Version 1.0.0 of chai-spies was just published.
The version 1.0.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of chai-spies.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
1.0.0 / 2018-01-10This 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
Commits
The new version differs by 44 commits.
1f79da5
chore(package): update rollup to version 0.53.4
ededa6a
Merge pull request #93 from stalniy/feat/fn-body
9b599ca
feat(spy): adds original function body to be exposed in spy.toString()
9a2d248
docs(README): adds documentation about sandboxes and new methods
55ad5a5
1.0.0
509926a
Merge pull request #91 from stalniy/fix/updates
27d9769
Fix formatting if readme
fc83ab5
chore(travis): updates list of testing node versions
19dfebc
chore(deps): upgrades rollup
c27ab28
chore(package): drop support for node 0.x
f8c4df7
Merge pull request #84 from damianb/patch-2
fe7ed2a
Remove link to very dead project
fa6a9b0
Merge pull request #80 from mLuby/patch-1
dab4373
Update Chai URL in README
e7530f1
Merge pull request #63 from chaijs/remove-lgtm
There are 44 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴