in
matcher (#1811)@std/esm
to esm
.fake
sinon
as a default sandboxnew
(#1626)nise
and re-import it to keep api the sameusingPromise
method to stub and sandbox.extend
and typeOf
Merge branch 'bouk-server-aint-xhr'
Merge pull request #1293 from mroderick/update-v1-docs-with-bundler-warnings Update 1.x documentation to say that it doesn't work with bundlers
Merge pull request #1294 from sinonjs/browserify-build Use Node instead of Ruby in the build script
Merge pull request #1292 from mroderick/update-readme Update readme
Merge pull request #1291 from mroderick/update-phantomjs Use phantomjs-prebuilt
Merge pull request #1289 from mroderick/fix-invalid-release-version-in-docs Fix invalid release number in v1.17.7.md front matter
Merge pull request #1290 from sinonjs/common-eslint Use common Sinon.JS eslint config
Merge pull request #1288 from mroderick/improve-documentation Improve documentation
Merge pull request #1283 from lucasfcosta/docs-stub-callThrough Add docs for stub.callThrough()
Merge pull request #1285 from sinonjs/uncycle-server-deps Uncycle server deps
Merge pull request #1282 from sinonjs/mochify-3 Use mocaccino 2 and mochify 3
Merge pull request #1281 from mroderick/add-missing-documentation Add missing documentation
Merge pull request #1277 from mroderick/remove-copyright-comments Remove copyright comments
Merge pull request #1271 from mroderick/use-es5-features Refactoring: use ES5.1 features
Merge pull request #1273 from melinath/patch-1 Update text-encoding version
Merge pull request #1255 from fatso83/remove-legacy-ie Remove traces of legacy IE
Merge pull request #1266 from duclet/chalk Switch to using "chalk" from "colors"
Merge pull request #1260 from JoshuaCWebDeveloper/ajax_events Fire onload event on non-2xx HTTP statuses in FakeXDomainRequest - fixes #1259
Merge pull request #1257 from piamancini/patch-1 Add backers and sponsors from Open Collective
Merge pull request #1256 from sprzybylski/download-page Create downloads page (#1218)
Merge pull request #1252 from mroderick/update-bundle-for-ruby-2.4.0 Update Gemfile for ruby 2.4.0
Merge pull request #1254 from mroderick/refute-issue-1245-in-sinon-2 Add test to disprove issue 1245 in Sinon 2.x
Merge pull request #1253 from BenBrostoff/error-equality Add error equality to deepEqual
Merge pull request #1243 from sprzybylski/changelog-page Update changelog page in postversion.sh
Merge pull request #1239 from mroderick/refactor-stub-method Refactor stub methods
Merge pull request #1242 from Floby/add-documentation-for-promise-stub Add documentation for .rejects() and .resolves()
Merge pull request #1241 from mroderick/cleanup-test-console Stop polluting the test console with a "test" string
Merge pull request #1238 from tarjei/patch-1 Document server.requests
Merge pull request #1235 from jonnyreeves/feature/internalize
Internalise typeOf
and extends
Merge pull request #1233 from lucasfcosta/fix-deepEqual-for-matchers Ensures different matchers won't be called against each other. Closes…
Merge pull request #1232 from lucasfcosta/sets-matchers Sets matchers
Merge pull request #1227 from zuzusik/zuzusik-always_chain_behavior_with_stub Always chain behavior with stub
Merge pull request #1215 from lucasfcosta/maps-matchers Maps matchers
Merge pull request #1226 from lucasfcosta/improve-site-readability Improve site readability
Merge pull request #1225 from lucasfcosta/resolve-reject-promise-upon-invoke Resolve/reject promise only upon invoke
stub(o, 'm', fn)
with stub(o, 'm').callsFake(fn)
sinon.assert
on sandbox instances. (#1076)sinon.test()
and sinon.testCase
.sinon.log
and sinon.logError
sinon-test
module.get-config
tests from sinon-test
.function-to-string
tests from sinon-test
.restore
tests from sinon-test
.createStubInstance
tests from sinon-test
deep-equal
tests from sinon-test
.wrap-method
tests from sinon-test
.extend
tests from sinon-test
to extend-test
sinon.format
from the codebasesandbox
into a CommonJS module.util/fake_server_with_clock
into a CommonJS moduleutil/fake_server
into a CommonJS module.util/fake_timers
into a CommonJS module.util/fake_xml_http_request
into a CommonJS module.util/fake_xdomain_request
into a CommonJS module.util/event
into a CommonJS module.sinon.logError
into a CommonJS module.sinon.mock
into a CommonJS module.createSpyCall
into a CommonJS module.sinon.assert
into a CommonJS module.walk
from sinon's public API.sinon
import from stubsinon.behavior
into a CommonJS modulesinon.walk
into a CommonJS module.wrapMethod
as a CommonJS modulenpm docs sinon
work.files
in package.jsonprogress
, load
and readystatechange
in the readyStateChange
function in FakeXMLHttpRequest
are dispatched in a different order in comparison to a browser. Reorder the events dispatched to reflect general browser behaviour.== 1.14.1 / 2015-03-16
== 1.14.0 / 2015-03-13
== 1.13.0 / 2015-03-04
== 1.12.1 / 2014-11-16
== 1.12.0 / 2014-11-16
== 1.11.1 / 2014-10-27
== 1.11.0 / 2014-10-26
== 1.10.3 / 2014-07-11
== 1.10.2 / 2014-06-02
returnValue
and exception
regression on spy calls (Maximilian Antoni)== 1.10.1 / 2014-05-30
== 1.10.0 / 2014-05-19
== 1.9.1 / 2014-04-03
NaN
to calledWith
(Blake Israel)ref
and unref
properties on Node (Ben Fleis)== 1.9.0 / 2014-03-05
== 1.8.2 / 2014-02-11
== 1.8.1 / 2014-02-02
== 1.8.0 / 2014-02-02
== 1.7.3 / 2013-06-20
== 1.7.2 / 2013-05-08
== 1.7.1 / 2013-05-07
== 1.7.0
== 1.6.0 / 2013-02-18
== 1.5.2 / 2012-11-28
== 1.5.1 / 2012-11-27
== 1.5.0 / 2012-10-19
== 1.4.2 / 2012-07-11
== 1.4.1 / 2012-07-11
== 1.4.0 / 2012-07-09
callsArg*
and yields*
for stubs (TEHEK)spy.printf("%*")
(Domenic Denicola)== 1.3.2 / 2012-03-11
clearTimeout
to not throw when called for nonexistent IDs.== 1.3.1 / 2012-01-04
== 1.3.0 / 2012-01-01
Format objects with buster-format in the default bundle. Default to util.inspect on node unless buster-format is available (not a hard dependency, more like a 'preference').
Bug fix: Make sure XHRs can complete even if onreadystatechange handler fails
Bug fix: Mirror entire Date.prototype, including toUTCString when faking
Bug fix: Default this object to global in exposed asserts
Bug fix: sinon.test: use try/finally instead of catch and throw - preserves stack traces (Kevin Turner)
Bug fix: Fake setTimeout
now returns ids greater than 0. (Domenic Denicola)
Bug fix: NPM install warning (Felix Geisendörfer)
Bug fix: Fake timers no longer swallows exceptions (Felix Geisendörfer)
Bug fix: Properly expose all needed asserts for node
Bug fix: wrapMethod on window property (i.e. when stubbing/spying on global functions)
Bug fix: Quote "yield" (Ben Hockey)
Bug fix: callOrder works correctly when spies have been called multiple times
== 1.2.0 / 2011-09-27
== 1.1.1 / 2011-05-17
== 1.1.0 / 2011-05-04
== 1.0.2 / 2011-02-22
== 1.0.1 / 2010-12-20
== 1.0.0 / 2010-12-08
Refactored sinon.test to not do all the heavy lifting in creating sandbox objects from sinon.config. Now sinon.sandbox.create accepts an optional configuration that can be retrieved through sinon.getConfig({ ... }) - or, to match previous behavior, through sinon.getConfig(sinon.config);
The default configuration now lives in sinon.defaultConfig rather than the previous sinon.test.
This change enables external tools, such as test framework adapters, to easily create configurable sandboxes without going through sinon.test
Useful when using the build script to build and use sinon programatically, so one can 'cp path/to/sinon/pkg/sinon.js my/scripts/'
== 0.8.0 / 2010-10-30
== 0.7.2 / 2010-10-25
== 0.7.1 / 2010-10-16
== 0.7.0 / 2010-09-19
== 0.6.2 / 2010-08-12
== 0.6.1 / 2010-08-12
== 0.6.0 / 2010-08-10
== 0.5.0 / 2010-06-09