Socket
Socket
Sign inDemoInstall

sinon

Package Overview
Dependencies
Maintainers
4
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinon - npm Package Versions

1
21

1.8.1

Diff

Changelog

Source

1.8.1

  • Screwed up NPM release of 1.8.0, unable to replace it
published 1.7.3 •

Changelog

Source

1.7.3

  • Removed use of array forEach, breaks in older browsers (Martin Hansen)
  • sinon.deepEqual(new Date(0), new Date()) returns true (G.Serebryanskyi)
cjohansen
published 1.7.2 •

Changelog

Source

1.7.2

  • Sinon 1.7 has split calls out to a separate file. This caused some problems, so 1.7.2 ships with spyCall as part of spy.js like it used to be.
cjohansen
published 1.7.1 •

Changelog

Source

1.7.1

  • Fake XMLHttpRequest updated to call onerror and onsuccess callbacks, fixing jQuery 2.0 problems (Roman Potashow)
  • Implement XMLHttpRequest progress event api (Marten Lienen)
  • Added sinon.restore() (Jonny Reeves)
  • Fix bug where throwing a string was handled incorrectly by Sinon (Brandon Heyer)
  • Web workers support (Victor Costan)
cjohansen
published 1.7.0 •

Changelog

Source

1.7.0

  • Failed release, see 1.7.1
cjohansen
published 1.6.0 •

Changelog

Source

1.6.0

  • Add methods to spyCall interface: callArgOn, callArgOnWith, yieldOn, yieldToOn (William Sears)
  • sinon.createStubInstance creates a fully stubbed instance from a constructor (Shawn Krisman)
  • resetBehavior resets fakes created by withArgs (Martin Sander)
  • The fake server now logs to sinon.log, if set (Luis Cardoso)
  • Cleaner npm package that also includes pkg/sinon.js and pkg/sinon-ie.js for cases where npm is used to install Sinon for browser usage (Domenic Denicola)
  • Improved spy formatter %C output (Farid Neshat)
  • clock.tick returns clock.now (Michael Jackson)
  • Fixed issue #248 with callOrder assertion Did not fail if the last given spy was never called (Maximilian Antoni)
  • Fixed issue with setResponseHeader for synchronous requests (goligo)
  • Remove msSetImmediate; it only existed in IE10 previews (Domenic Denicola)
  • Fix #231: not always picking up the latest calls to callsArgWith, etc. (Domenic Denicola)
  • Fix failing anonymous mock expectations
cjohansen
published 1.5.2 •

Changelog

Source

1.5.2

  • Revert stub.reset changes that caused existing tests to fail.
cjohansen
published 1.5.0 •

Changelog

Source

1.5.0

  • Don't force "use strict" on Sinon consumers
  • Don't assume objects have hasOwnProperties. Fixes problem with e.g. stubbing properties on process.env
  • Preserve function length for spy (Maximilian Antoni)
  • Add 'invokeCallback' alias for 'yield' on calls (Maximilian Antoni)
  • Added matcher support for calledOn (Maximilian Antoni)
  • Retain original expectation messages, for failed mocks under sinon.test (Giorgos Giannoutsos)
  • Allow yields* and callsArg* to create sequences of calls. (Domenic Denicola)
  • sinon.js can catch itself in endless loop while filling stub prototype with asynch methods (Jan Kopriva)
cjohansen
published 1.4.2 •

Changelog

Source

1.4.2

  • sinon.match for arrays (Maximilian Antoni)
cjohansen
published 1.4.1 •

Changelog

Source

1.4.1

  • Strengthen a Node.JS inference to avoid quirky behavior with Mocha (which provides a shim process object)
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