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 dependency chai-spies to v1 #49

Merged
merged 4 commits into from Apr 13, 2019
Merged

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Apr 12, 2019

This PR contains the following updates:

Package Type Update Change References
chai-spies devDependencies major 0.7.1 -> 1.0.0 source

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

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch 2 times, most recently from e5637c0 to 34f6207 Compare April 13, 2019 22:14
@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch from 34f6207 to a8dd8da Compare April 13, 2019 22:15
@renovate
Copy link
Author

renovate bot commented Apr 13, 2019

PR has been edited

👷 This PR has received other commits, so Renovate will stop updating it to avoid conflicts or other problems. If you wish to abandon your changes and have Renovate start over you may click the "rebase" checkbox in the PR body/description.

@mindsers mindsers merged commit 1aacdc7 into develop Apr 13, 2019
@mindsers mindsers deleted the renovate/chai-spies-1.x branch April 13, 2019 23:45
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.

None yet

2 participants