JSPM

  • Created
  • Published
  • Downloads 8506226
  • Score
    100M100P100Q207577F

Package Exports

  • /lib/sinon/assert
  • /lib/sinon/collection
  • /lib/sinon/mock
  • /lib/sinon/sandbox
  • /lib/sinon/spy
  • /lib/sinon/stub
  • /lib/sinon/test
  • /lib/sinon/test_case
  • /lib/sinon/util/fake_xml_http_request
  • /package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package () to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Sinon.JS

Standalone and test framework agnostic JavaScript test spies, stubs and mocks.

Installation

via npm (node package manager)

$ sudo npm install sinon

or install via git by cloning the repository and including sinon.js in your project, as you would any other third party library.

Usage

See the sinon project homepage

Goals

  • No global pollution
  • Easy to use
  • Require minimal “integration”
  • Easy to embed seamlessly with any testing framework
  • Easily fake any interface
  • Ship with ready-to-use fakes for XMLHttpRequest, timers and more

Develop?

Check out todo.org in the project repository