Sinon Versions Save

Test spies, stubs and mocks for JavaScript.

v4.2.2

6 years ago
  • Fix #1638: Make resetHistory work for props

v4.1.6

6 years ago

v4.2.0

6 years ago
  • Add match.every and match.some (#1624) (#1661)

v4.2.1

6 years ago
  • Performance: spend less time stubbing methods (#1627)

v4.1.5

6 years ago

This release fixes an issue, where the server type from useFakeServer is unexpected (#1534)

v4.1.4

6 years ago
  • Fix: assertion error messages did not handle Symbol names (#1640)
  • Deprecate spy.reset(), use spy.resetHistory() instead (#1446)

v3.2.0

6 years ago
  • Fix #1521 by caching references to Array.prototype.filter (#1523)
  • Fix #1368 by adding stub#resolvesThis (#1517)

v3.1.0

6 years ago
  • Add factory functions for sandbox and fake server (#1515)
  • Add support for passing a function to stub.throws(...). (#1511)
  • Lots of documentation updates
  • Fix regression on sandbox.stub(obj,protoMethod) (#1512)

v3.0.0

6 years ago
  • Remove deprecated exports see migration guide
  • Fix #1432: add details around expectations.withArgs behavior to docs (#1501)
  • Fix #1487: incorrect withArgs().returnValue
  • add format.setFormatter
  • Upgrade lolex to 2.1.2
  • Extract fakeXhr, fakeServer and fakeServerWithClock into own module nise and re-import it to keep api the same

v2.0.0

6 years ago

This is the big 2.0 release with lots of breaking changes. We have created a migration guide on the Sinon homepage you are advised to follow.

Changes since pre6

  • Add restore method for stubbed property descriptors
  • Allow stubbing getters and setters for function properties
  • Add getters/setters stub behaviors
  • Refactor xhr and xhr.upload to use the same EventTargetHandler
  • Remove SSL part of base url