Nebo15 / react-nebo15-events

Event Manager for application on React JS
MIT License
4 stars 2 forks source link

Update chai-spies to the latest version 🚀 #33

Open greenkeeper[bot] opened 6 years ago

greenkeeper[bot] commented 6 years ago

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](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree: