Sinon.js

Software Screenshot:
Sinon.js
Software Details:
Version: 1.17.2 updated
Upload Date: 6 Mar 16
Developer: Christian Johansen
Distribution Type: Freeware
Downloads: 65

Rating: 3.0/5 (Total Votes: 1)

Sinon.js is framework-agnostic JS toolkit, meaning it can work on its own, or along side a more complex JavaScript framework like Prototype, MooTools or JavaScriptMVC.

As for use scenarios, Sinon.js is a JavaScript tool that can fake the presence of various environment conditions.

This allows developers to test their code in those environments and get usable results for debugging their code.

Sinon.js can fake AJAX requests, the process of time passing, various server settings and comes with its own sandbox mode.

Tested and working on most major desktop/mobile browsers.

It also works on Node.js as well.

What is new in this release:

  • Stub & spy getters & setters
  • Fix async sinon.test using mocha interface
  • Add respondImmediately to fake servers

What is new in version 1.16.1:

  • Stub & spy getters & setters
  • Fix async sinon.test using mocha interface
  • Add respondImmediately to fake servers

What is new in version 1.15.0:

  • Stub & spy getters & setters
  • Fix async sinon.test using mocha interface
  • Add respondImmediately to fake servers

What is new in version 1.14.1:

  • Stub & spy getters & setters
  • Fix async sinon.test using mocha interface
  • Add respondImmediately to fake servers

What is new in version 1.12.2:

  • Fixed an issue passing `NaN` to `calledWith`
  • Explicate dependency on util package

What is new in version 1.9.0:

  • Added sinon.assert.match.
  • Added ProgressEvent and CustomEvent. Fixes bug with progress events on IE.
  • Prevent setRequestHeaders from being called twice.
  • Fixed onload call, 'this' should be equal to XHR object.
  • Removed sandbox injected values on restore.
  • Coerced matcher.or/and arguments into matchers.

What is new in version 1.8.1:

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

What is new in version 1.7.3:

  • Removed use of array forEach, breaks in older browsers.
  • sinon.deepEqual(new Date(0), new Date()) returns true.

What is new in version 1.7.1:

  • Implement XMLHttpRequest progress event API.
  • Added sinon.restore().
  • Fixed bug where throwing a string was handled incorrectly by Sinon.
  • Web workers support.

What is new in version 1.6.0:

  • Improved spy formatter %C output.
  • clock.tick returns clock.now.
  • Fixed issue #248 with callOrder assertion. Did not fail if the last given spy was never called.
  • Fixed issue with setResponseHeader for synchronous requests.
  • Remove msSetImmediate; it only existed in IE10 previews.
  • Not always picking up the latest calls to callsArgWith, etc..
  • Fixed failing anonymous mock expectations.

What is new in version 1.5.1:

  • Ensured window.Image can be stubbed.
  • Fixed spy() in IE 8.
  • Fixed sinon base in IE 8.
  • Format arguments ouput when mock excpetation is not met.

What is new in version 1.5.0:

  • Preserved function length for spy.
  • Added 'invokeCallback' alias for 'yield' on calls.
  • Added matcher support for calledOn.
  • Retain original expectation messages, for failed mocks under sinon.test.
  • Allow yields* and callsArg* to create sequences of calls.
  • sinon.js can catch itself in endless loop while filling stub prototype with asynch methods.

What is new in version 1.4.2:

  • Added sinon.match for arrays.

Requirements:

  • JavaScript enabled on client side
  • Node.js 0.2 for server-side environments

Similar Software

Istanbul
Istanbul

18 Jul 16

Hydra
Hydra

23 Jul 15

YUI Test
YUI Test

1 Mar 15

TestBox
TestBox

28 Feb 15

Other Software of Developer Christian Johansen

Validatious 2.0
Validatious 2.0

23 Jul 15

Comments to Sinon.js

Comments not found
Add Comment
Turn on images!