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

Bump chai-spies from 0.7.1 to 1.0.0 #105

Merged
merged 1 commit into from
Nov 13, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2022

Bumps chai-spies from 0.7.1 to 1.0.0.

Release notes

Sourced from chai-spies's releases.

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

... (truncated)

Changelog

Sourced from chai-spies's changelog.

Note

As of 0.6.0, the History.md file has been deprecated. Please refer to the full commit logs available on GitHub.


0.6.0 / 2015-04-24

  • Merge pull request #21 from stalniy/master
  • Added test for anonymous spy object implementation
  • Fixed JsDoc for spy.object method
  • Implemented support for spy.on and spy.object methods
  • Merge pull request #20 from Ryckes/patch-1
  • Merge pull request #17 from Ryuno-Ki/master
  • Update spy.js
  • Update chai-spies.js
  • Merge pull request #19 from sateffen/master
  • Corrected some spelling mistakes in README.md
  • Fixed typo.
  • Merge pull request #16 from plaxdan/patch-1
  • Add .with to the API docs
  • Merge pull request #15 from brandonhorst/master
  • Added docs for above/below
  • Implemented min/at least and max/at most
  • Fixed language of above and below
  • Fix the called examples
  • Merge pull request #10 from pgherveou/patch-1
  • 'twice' instead of 'once'
  • Merge pull request #9 from pgherveou/master
  • Update component.json
  • add component.json

0.5.1 / 2012-11-15

  • fix output of .called(n) assertion error

0.5.0 / 2012-11-14

  • Merge branch 'feature/arguments'
  • browser build
  • tests for argument call assertions
  • add assertions for argument checking
  • add assertion: .with() / .with

0.4.0 / 2012-10-09

... (truncated)

Commits
  • 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
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 1, 2022
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/chai-spies-1.0.0 branch from 651b9d0 to 2b2d1d3 Compare November 13, 2022 09:31
Bumps [chai-spies](https://github.com/chaijs/chai-spies) from 0.7.1 to 1.0.0.
- [Release notes](https://github.com/chaijs/chai-spies/releases)
- [Changelog](https://github.com/chaijs/chai-spies/blob/master/History.md)
- [Commits](chaijs/chai-spies@0.7.1...1.0.0)

---
updated-dependencies:
- dependency-name: chai-spies
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/chai-spies-1.0.0 branch from 2b2d1d3 to 935eada Compare November 13, 2022 09:59
@eatyourgreens eatyourgreens merged commit 270331e into master Nov 13, 2022
@eatyourgreens eatyourgreens deleted the dependabot/npm_and_yarn/chai-spies-1.0.0 branch November 13, 2022 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant