Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update chai-spies to the latest version 🚀 #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link

@greenkeeper greenkeeper bot commented Jan 12, 2018

Version 1.0.0 of chai-spies was just published.

Dependency chai-spies
Current Version 0.7.1
Type devDependency

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-10

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

chai.spy.on(array, 'push', returns => 5)
chai.spy.on(array, 'push', function() {
  // custom implementation
})
const spy = chai.spy()

spy(1); // first call
spy(2); // second call
spy(3); // third call
spy(i); // nth call

expect(spy).to.have.been.first.called.with(1)
expect(spy).to.have.been.second.called.with(2)
expect(spy).to.have.been.third.called.with(3)
expect(spy).on.nth(i).be.called.with(i)

Bug Fixes

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 🌴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants