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

chore(deps): update dependency chai-spies to v1 #845

Open
wants to merge 1 commit into
base: master
from

Conversation

@renovate
Copy link
Contributor

commented Jun 4, 2019

This PR contains the following updates:

Package Type Update Change
chai-spies devDependencies major 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
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 5231245 to da7b0df Jun 5, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch from da7b0df to 1188fb1 Jun 14, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch 4 times, most recently from 09c9110 to 0ae83cc Jul 1, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch 3 times, most recently from e850dea to 9e909b4 Jul 10, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch 6 times, most recently from dba4c59 to e572c60 Jul 18, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch 4 times, most recently from 304ae66 to aac136f Jul 26, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch 6 times, most recently from 9dcf9eb to c27fd58 Aug 8, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch 3 times, most recently from 82ec590 to 843c428 Aug 18, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch from 843c428 to c3446bb Aug 25, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch 6 times, most recently from 2397df0 to 9f2f3e2 Aug 30, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch 4 times, most recently from 86d812a to 3f71479 Sep 12, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch from 3f71479 to 0815290 Sep 19, 2019

@renovate renovate bot force-pushed the renovate/chai-spies-1.x branch from 0815290 to 6d96a82 Sep 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.