Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sinon

Package Overview
Dependencies
Maintainers
3
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinon - npm Package Versions

1
21

2.3.4

Diff

Changelog

Source

2.3.4

  • Fix #1372: make sandbox.resetHistory also reset spies (#1424)
mrgnrdrck
published 2.3.3 •

Changelog

Source

2.3.3

  • Fix #1445: make stubbing of static function properties possible
mrgnrdrck
published 2.3.2 •

Changelog

Source

2.3.2

  • Fix failing sandbox.resetBehavior() (#1428)
  • Fix restoring getters/setters/values for previously unexisting props (#1419)
  • Called in order takes callCount into account. Closes #1398.
mrgnrdrck
published 2.3.1 •

Changelog

Source

2.3.1

  • Make calledAfter symmetric with calledBefore (#1407)
mrgnrdrck
published 2.3.0 •

Changelog

Source

2.3.0

  • 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()
mrgnrdrck
published 2.2.0 •

Changelog

Source

2.2.0

  • Added usingPromise method to stub and sandbox.
  • Added support for React Native window location format Fixes sinonjs/sinon#1362
  • Fix error on call.toString() where stack has fewer than 4 lines.
fatso83
published 2.1.0 •

Changelog

Source

2.1.0

  • Redesign the template (#1339)
  • [feature] adds spy.calledImmediatelyBefore and spy.calledImmediatelyAfter
  • Fix issue #1332: little bug correction in spy.printf "%*" formatter.
cjohansen
published 2.0.0 •

Changelog

Source

2.0.0

  • 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
cjohansen
published 2.0.0-pre.6 •

Changelog

Source

v2.0.0-pre.6

  • Add sinon.addBehavior, use it to add the default behaviors
  • Use Node instead of Ruby in the build script
  • Lots of documentation updates
  • Many dependency updates
  • Add a simple implementation og ANSI colors and boot out chalk
  • No circular dependencies, thank you very much
  • Replace homegrowns with ES5
  • Remove legacy IE bits from code
  • Fire onload event on non-2xx HTTP statuses in FakeXDomainRequest
  • Extract throwOnFalsyObject to own function
  • Stop polluting the test console with a "test" string
  • Complete internalization of extend and typeOf
  • Allow calling original function from stub. Closes #989 (#1234)
  • Matcher for Set type
  • Matcher for Map type
  • Fix set iterableToString test on IE11
  • add test-dev npm script to run tests in watch mode
fatso83
published 1.17.7 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc