sinon

Test spies, stubs and mocks for JavaScript.

OTHER License

Downloads
24M
Stars
9.6K
Committers
392

Bot releases are hidden (Show)

sinon - Make resetHistory work for props Latest Release

Published by mroderick over 6 years ago

  • Fix #1638: Make resetHistory work for props
sinon - Replace 4.1.5, which was a bad build

Published by mroderick over 6 years ago

sinon - Add match.every and match.some

Published by mroderick over 6 years ago

  • Add match.every and match.some (#1624) (#1661)
sinon - Speed up stub creation

Published by mroderick over 6 years ago

  • Performance: spend less time stubbing methods (#1627)
sinon - Fix issue with `useFakeServer`

Published by mroderick almost 7 years ago

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

sinon - Minor fix for Symbol names and deprecation of spy.reset

Published by mroderick almost 7 years ago

  • Fix: assertion error messages did not handle Symbol names (#1640)
  • Deprecate spy.reset(), use spy.resetHistory() instead (#1446)
sinon - Add stub#resolvesThis

Published by mroderick about 7 years ago

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

Published by fatso83 about 7 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)
sinon -

Published by mroderick about 7 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
sinon -

Published by fatso83 about 7 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

This release fixes #1474

sinon - Fix #1274

Published by mroderick over 7 years ago

Fix #1274: spy.withArgs(args...).callCount is incorrect

sinon - Fix #1476

Published by mroderick over 7 years ago

  • Fix #1476: spy.withArgs(args...).firstCall is broken
sinon - Fix: Check configurable on a prop before creating

Published by mroderick over 7 years ago

  • Check configurable on a prop before creating (fixes #1456) (#1462)
sinon - Make sandbox.resetHistory also reset spies

Published by mroderick over 7 years ago

  • Fix #1372: make sandbox.resetHistory also reset spies (#1424)
sinon - Make stubbing of static function properties possible

Published by mroderick over 7 years ago

  • Fix #1450, make stubbing of static function properties possible
sinon - Minor fixes

Published by mroderick over 7 years ago

  • Fix failing sandbox.resetBehavior() (#1428)
  • Fix restoring getters/setters/values for previously unexisting props (#1419)
  • Called in order takes callCount into account. Closes #1398.
sinon - Make calledAfter symmetric with calledBefore

Published by mroderick over 7 years ago

  • Make calledAfter symmetric with calledBefore (#1407)
sinon - Feature: stub accessors in sandbox

Published by mroderick over 7 years ago

  • Allow stubbing of accessors with and without sandbox (#1416)
  • add throwsArg(index) to stubs (#1319)
  • Fix: forEach() requires 'this' argument (#1356)
  • Only reset history when calling resetHistory()
sinon - Pre-release #4 of Sinon 2

Published by mroderick almost 8 years ago

Changes in this release, compared to v2.0.0-pre.3

  • #1061 add configurable unsafe header checks
  • #1173 Expose readyState constants on XHR instances
  • #1175 Fire .onprogress event handler in fake XHR
  • #1176 Implement XHR.overrideMimeType
  • #1183 Use last defined withArgs match when multiple conditions are met

Full comparison

Package Rankings
Top 0.42% on Npmjs.org
Top 3.67% on Proxy.golang.org
Top 22.07% on Repo1.maven.org