Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/sinonjs/sinon

Test spies, stubs and mocks for JavaScript.
https://github.com/sinonjs/sinon

Catch exceptions when parsing DOM elements "on a hunch"

- When responding to XHRs, Sinon acts like most browsers and try to parse the
response into re...

6be524a62235241fc81c93cd69e310166c43e7d0 authored over 13 years ago by Christian Johansen <[email protected]>
fix fakeServer.respond() to not drop requests when they are queued during the processing of an existing queue.

01b9033092ed0dc2067153cbca1f9a8cc99f9586 authored over 13 years ago by Sven Fuchs <[email protected]>
Always load full Sinon on node, require files relatively

02871ac0e24e4829a168d5d5403c1c575fc44002 authored over 13 years ago by Christian Johansen <[email protected]>
Merge branch 'master' of https://github.com/wdso/Sinon.JS into wdso-master

eccd2ebd1a746c73dacf9ef1e00a8e65b7774874 authored over 13 years ago by Christian Johansen <[email protected]>
Merge 1.0.2 changes

fb7233c52a96ddabe794e38f75eb56589e3f65c9 authored over 13 years ago by Christian Johansen <[email protected]>
1.0.2 Changelog

9f29e919eba820d5ae707ddc07862d640eab6cc9 authored over 13 years ago by Christian Johansen <[email protected]>
Sandbox no longer tries to use a fake server if config says so, but server is not loaded

9e225c6bb8cac05106b83871ad42f2b0905936e9 authored over 13 years ago by Christian Johansen <[email protected]>
Fix JSON bug in package.json

c154affac39f37aef1f33893c958a31035f7eb43 authored over 13 years ago by Christian Johansen <[email protected]>
Add spy.reset() to reset the state of a spy

8ce44e98ac7e47d6cc9626067edfef621ecd3873 authored over 13 years ago by Christian Johansen <[email protected]>
Don't shadow the global property when faking timers on node.js

e9c183f8a157716b85ffcf949624c67ca070074d authored over 13 years ago by Christian Johansen <[email protected]>
missing typeof operator

dd034f9c4cf088938531ad76c18e9e02d2ac8d1e authored over 13 years ago by Tristan Koch <[email protected]>
made sinon wrappable in closure; removed references to this.sinon

c0b83c25470bbf81cf4c935ad6326e05b8725ee8 authored over 13 years ago by Tristan Koch <[email protected]>
Ignore packaged files

8417bdd2bf80eb53dda9ca09a74bf53752996306 authored over 13 years ago by Christian Johansen <[email protected]>
Add rudimentary setup for running tests on Rhino with env.js

3ac517526d18c7a49ba903a7a76e60d02498a182 authored over 13 years ago by Christian Johansen <[email protected]>
Make testCase helper method test slightly more specific

688a7fc745fe018619589cbeb030274dec4fa79c authored over 13 years ago by Christian Johansen <[email protected]>
Set development version number, fix build script

216adab3cccaba70ac335ae80145a5a964dd52e8 authored over 13 years ago by Christian Johansen <[email protected]>
Fix bug where non-test properties on a test case were discarded by sinon.testCase

aae7f1e9d69a74b4ca16592b8f8891da2c867e1e authored over 13 years ago by Christian Johansen <[email protected]>
Alias "throws" as "throwsException"

Makes it possible to use this feature in environments that enforce ES3 future
reserved words (Rh...

3eddd894c0a838a3d37faf8346968984b06a82e1 authored over 13 years ago by Christian Johansen <[email protected]>
Add a few basic tests to make sure mock expectations inherit yields

5fdad730a853051f73164bb0e93e64180b13297e authored over 13 years ago by Christian Johansen <[email protected]>
"use strict";

1c20015e3958caf6ead2c3bf9809b30f16a58cea authored over 13 years ago by Christian Johansen <[email protected]>
Merge branch 'mockup-server'

b7369a1174f88eb092850559174da9e4f1e39a7a authored over 13 years ago by Christian Johansen <[email protected]>
Allow functions to handle requests through server.respondWith

824d7e3ac54d52964495c2960f12f49bf2bdd060 authored over 13 years ago by Christian Johansen <[email protected]>
Add todo note

a4c7cc06d948ccecdcd6f1402809994ae72574e6 authored over 13 years ago by Christian Johansen <[email protected]>
Make callsArg and callsArgWith return self

1ff5fb45ffccc8593420b05c07f81f63b2e53d2a authored almost 14 years ago by Christian Johansen <[email protected]>
Add stub.yields and stub.yieldsTo for automatically calling callbacks

74d79acfd9693d1ceedfc462d6a22e3f64942301 authored almost 14 years ago by Christian Johansen <[email protected]>
Undo test

a91c882c51619705c23cc26636777133eff79e4e authored almost 14 years ago by Christian Johansen <[email protected]>
Test

27d0f3edf43126ede0f9500621eedeadbcbd3bb0 authored almost 14 years ago by Christian Johansen <[email protected]>
Add fakeServer.autoRespond(bool) and fakeServer.autoRespondAfter(ms)

e1b66fd9bc65aac88ffc25c31dcf68241312047f authored almost 14 years ago by Christian Johansen <[email protected]>
Fix bug: XHR.getAllResponseHeaders should return string, not object

f9ad4b1104e6ca9a676d443868741e9a7eee39f1 authored almost 14 years ago by Christian Johansen <[email protected]>
Add withArgs behavior to stubs

6293a1ed4d5ab800240244068bf38d2a55402778 authored almost 14 years ago by Christian Johansen <[email protected]>
Don't modify DOM elements when comparing them in deepEqual

083b66aa3c5f72b9edc7185cdc35f7faa8b07db1 authored almost 14 years ago by Christian Johansen <[email protected]>
Allow spies to have 'sub spies' filtered on received arguments

9028d3b5ea2fd8ae5cd161c4d750b9411634c362 authored almost 14 years ago by Christian Johansen <[email protected]>
Quote 'throws' to be nice to YUI Compressor

dc560624bcbd32a9ddd43b056510a65b4671b92c authored almost 14 years ago by Christian Johansen <[email protected]>
1.0.1 Meta

d1d324bdf48b6fecf804130b0a6905a2152d69fd authored almost 14 years ago by Christian Johansen <[email protected]>
export sandbox to node

816c33e3af845e0f66779cb2d9fe7a10d36d31d3 authored almost 14 years ago by Gord Tanner <[email protected]>
Fake server throws if respondWith is called it non-string response bodies

c0b2972ac19edebaf0a61522f7a667236971cc43 authored almost 14 years ago by Christian Johansen <[email protected]>
Exclude the plugin from the build script

1d16ae622b6b3aa4388e9fe61b3ff4aacbf0dac7 authored almost 14 years ago by Christian Johansen <[email protected]>
Update Changelog and AUTHORS for 1.0.0

Fix two failing tests in Firefox 3.5

080a0b9898796090acb2f54ff65999b480ad14f5 authored almost 14 years ago by Christian Johansen <[email protected]>
Screw 2 space indentation. Never really liked it, back to 4 lovely spaces

f7f2a2d96feef83d6cc87619e17473f40f0f9299 authored almost 14 years ago by Christian Johansen <[email protected]>
1.0.0 cleanup

23f0739ec6188e28623f567e89d4657b71005468 authored almost 14 years ago by Christian Johansen <[email protected]>
Node.js compatibility improvements

fa56a161709cb1659beae0a436468f870854c475 authored almost 14 years ago by Christian Johansen <[email protected]>
Remove magic booleans from sinon.assert.expose

f3d882aab70f5a43a9dae7d32b3007ae2d3f38a7 authored almost 14 years ago by Christian Johansen <[email protected]>
Remove QUnit adapter - it has it's own repository

01472d8094ab999fc2ceee2d0632b2d4d1d0682b authored almost 14 years ago by Christian Johansen <[email protected]>
Update build script to build standalone timers and server files

6db2bb616c2d7e66721a10e59cd6926a6033e770 authored almost 14 years ago by Christian Johansen <[email protected]>
Breaking change: thisObj -> thisValue

Change brings consistency to the code-base, always use thisValue

76094d6db87d8f4fda2500de07ebef7f811239e6 authored almost 14 years ago by Christian Johansen <[email protected]>
Add sinon.assert.pass callback for successful assertions

8f75b12c84c98fdefa8375b4df3bfe5ae1830fa6 authored almost 14 years ago by Christian Johansen <[email protected]>
Update todo file

9d570a305979cb53ccb9a402196a4cbef0bb1a63 authored almost 14 years ago by Christian Johansen <[email protected]>
Extract sandbox configuration from sinon.test

Refactored sinon.test to not do all the heavy lifting in creating sandbox
objects from sinon.con...

f003352a5d4d61492aad09d555caf9f8daf84293 authored almost 14 years ago by Christian Johansen <[email protected]>
Node.js friendly sandbox

01d79b366afc3815dec7679876d1e129076fb108 authored almost 14 years ago by Christian Johansen <[email protected]>
Rewrite sinon.clock.tick to fix bug and make implementation clearer

87656f44b48db9504087ffad25c58d0fca5d1c96 authored almost 14 years ago by Christian Johansen <[email protected]>
Test config load correct files

ac68da322c61cef3a6d903b0bfebfc0f854d3347 authored almost 14 years ago by Christian Johansen <[email protected]>
Make timers and XHR truly standalone by splitting the IE work-around in two files

d6d9cefdfa53ac8bde83654fdd784ddc3d2e5fb0 authored almost 14 years ago by Christian Johansen <[email protected]>
Don't fail when comparing DOM elements in sinon.deepEqual (used in calledWith(...))

8be9da14755c76e8737fea918383759f93f6bbc3 authored almost 14 years ago by Christian Johansen <[email protected]>
Should mirror properties on Date when faking it

cd12f2095289704ee8e059fc99d4e2061b5f154b authored almost 14 years ago by Christian Johansen <[email protected]>
Linting. Add JavaScript Lint config

8569c0f3799fc377377135f7361d204c00633772 authored almost 14 years ago by Christian Johansen <[email protected]>
Merge remote branch 'augustl/buildplain'

1b308e273df50e78d82a1a34e21ca9884301809a authored almost 14 years ago by Christian Johansen <[email protected]>
The build script can optionally build a file without the version name in it, by passing 'plain', i.e. './build plain'.

Useful when using the build script to build and use sinon programatically, so one can 'cp path/t...

c030585b204ed0c1adeeeb8bf8b28db2ab2a7241 authored almost 14 years ago by August Lilleaas <[email protected]>
Merge remote branch 'augustl/nojuicererrormsg'

bbb882b968adb9aa8bece3ddec41f4702b0a1125 authored almost 14 years ago by Christian Johansen <[email protected]>
Checking and warning if we got a load error and rubygems isn't present.

197b8e0560d27bde27c78cf64aa9909698c5524e authored almost 14 years ago by August Lilleaas <[email protected]>
Updating build script to be runnable from any directory. Current working directory doesn't have to be repo root.

017f7e083a01b9bc517ddc04d48686df2bc1ea67 authored almost 14 years ago by August Lilleaas <[email protected]>
0.8.0 release, allow for sinon.test to expose sandbox object

6e452a465de8e3f61a1789d5b63c113c42ab78f5 authored almost 14 years ago by Christian Johansen <[email protected]>
Add QUnit mini-plugin

7482a1934e3302880cc9cde23a08f083a505bf3e authored almost 14 years ago by Christian Johansen <[email protected]>
Update test that failed because Sinon no longer allows double faking

3af630205225d444aafce3778bc3bc1b1a0e936b authored almost 14 years ago by Christian Johansen <[email protected]>
sinon.wrapMethod should not accept wrapping already wrapped/faked methods

a2441ac6d9d875a91e585007a7d26762d2f3b1ad authored almost 14 years ago by Christian Johansen <[email protected]>
0.7.2 Release

3bfdb4e210adf5064ff02d149a55af8a33fec665 authored almost 14 years ago by Christian Johansen <[email protected]>
Fix bug where clock.tick would fire timeouts in intervals when setInterval was also called

ff1d6ad67245a093ce1ffa4dd35e7a550fdab49a authored almost 14 years ago by Christian Johansen <[email protected]>
Add sinon.sandbox.create back in

ba222ec6aedeb3a76d2a916c741116ee2f92cb66 authored about 14 years ago by Christian Johansen <[email protected]>
Changelog for 0.7.1

23afd365e622e734d4c45d0b7bb5a8768366cb1a authored about 14 years ago by Christian Johansen <[email protected]>
Add sinon.functionToString, used in spies and stubs

Makes for more human-readable error messages from sinon assertions

ac49268815a4fa434678d67bea7ce40f5b9afbdb authored about 14 years ago by Christian Johansen <[email protected]>
Remove mysterious src directory inside lib/

353c29fed88a675b33311bf5faa4953e8c108591 authored about 14 years ago by Christian Johansen <[email protected]>
Update to 0.7.1

fcf1f5c45eed5afc5449abe25b7227eae2614fc1 authored about 14 years ago by Christian Johansen <[email protected]>
Improved build script

e946f938156a37fc02be76ab3f1c81ea1cbe8c26 authored about 14 years ago by Christian Johansen <[email protected]>
Fake server should match / to http://currentHost/

81c320fe20e33c66fbb3854726ae5aae259a8b88 authored about 14 years ago by Christian Johansen <[email protected]>
Update build script for src->lib update

cd55bfec8c8fca15b978144b18cf76b0230593a1 authored about 14 years ago by Christian Johansen <[email protected]>
0.7.0

e38a3a08525633a19dd669be0d356abf85aec3cf authored about 14 years ago by Christian Johansen <[email protected]>
Clean up sinon.test and sinon.testCase - check arguments and don't do more than necessary

2420c2a46ee901e2a872bf5a38c02f2aca709277 authored about 14 years ago by Christian Johansen <[email protected]>
Guess name of Sinon fakes even when they've been assigned to an object

f4783f3f379ddf4b1ddeac2c46cc3cbddbb5e290 authored about 14 years ago by Christian Johansen <[email protected]>
Proper error messages from assertions

e0802f50015cf13ddb1d6e514d8f680896b1a5ce authored about 14 years ago by Christian Johansen <[email protected]>
toString for spies, stubs and mocks for better error messages

223f05d6507e3e0eb7a170baef06363356b889c0 authored about 14 years ago by Christian Johansen <[email protected]>
Don't allow stub to stub function objects

ceb8b25be9ff8ff51cfb522f79901bfeadfcfba9 authored about 14 years ago by Christian Johansen <[email protected]>
Throw exception when faking a non-function property on an object

22a37fb5dabfb6512fdb157f8dc1b10c70fafd29 authored about 14 years ago by Christian Johansen <[email protected]>
Treat missing argument to clock.tick as 0

c51a2fab28144b6988611386193a684e734c5451 authored about 14 years ago by Christian Johansen <[email protected]>
Added sinon.assert.{notCalled,calledOnce,calledTwice,calledThrice}

93715e4979719d2694ee81b6accd474d7b8b7566 authored about 14 years ago by Christian Johansen <[email protected]>
calledBefore and calledAfter for indivual calls

826b705a1e5d2ab3ee9cd96d8533f579318e62e2 authored about 14 years ago by Christian Johansen <[email protected]>
Tick clock with time strings ala '05:34'

2b8d80652e9a631655e112d08e5aed7aa6ee21d5 authored about 14 years ago by Christian Johansen <[email protected]>
Fake timers and servers by default in sinon.test

Allow sinon.config to specify which fake server to use

Allow sinon.config to specify which date...

a159ceeb7c42520e4f814c9d6a05db428c9bac38 authored about 14 years ago by Christian Johansen <[email protected]>
Add in updated implementation of clock.tick, update test config to pass tests

b33af697f54c81d705de882eba7dcb356216458f authored about 14 years ago by Christian Johansen <[email protected]>
Merge remote branch 'seeflanigan/master'

cd6f670e710bec1389998566d443feb09ac841c3 authored about 14 years ago by Christian Johansen <[email protected]>
Simple build file until I have something proper

500bb57e653dd2ba8816de7e95911320920e9cee authored about 14 years ago by Christian Johansen <[email protected]>
Allowing sinon.config to specify which fake server to use and which timer properties to fake

848f790158f9903731c0d4370d9810c91c5ceacf authored about 14 years ago by Christian Johansen <[email protected]>
Version bump

6d55eb4132d5155fd8e92dc3da88bde37cd722e7 authored about 14 years ago by Cory <[email protected]>
Add npm package manifest

6e40d9c7b6ac2fd78dcd008b37ff679515ba6a5c authored about 14 years ago by Cory <[email protected]>
Copy src/ to lib/ for compatibility with npm standard

cc4940f35d2afca42190c690c5e379e464b3d1ad authored about 14 years ago by Cory <[email protected]>
Move src/ to lib/ for compatibility with npm

3b100851bcfdd4d718a652e2a434f4e4f1e232fa authored about 14 years ago by Cory <[email protected]>
Convert readme to markdown syntax and add some very basic instructions

3fe73e2dc742c2b3d70be4c60093966ec204aef7 authored about 14 years ago by Cory <[email protected]>
Fixed remaining issues with clock.tick and setInterval. Needs cleaning up

700b8cc24f3683d4c4dd85b59c3e3e4e5608ef3e authored about 14 years ago by Christian Johansen <[email protected]>
Add more todo

40d3c7177f824797b8c62f9e1d67ded86bcf29ac authored about 14 years ago by Christian Johansen <[email protected]>
More todo

e41c2aafb91c21272677d288dd12c1d91caff99a authored about 14 years ago by Christian Johansen <[email protected]>
Fix bug with fake timers: ticking the clock should update the faked timestamp for each called timer so new Date works as expected in timed out callbacks

96d03f5c60ec277c4e89a9db05a88a3574855c23 authored about 14 years ago by Christian Johansen <[email protected]>
useFakeTimers fakes Date by default

6c9f628139aeddc7be8abdb057a088aa49799aea authored about 14 years ago by Christian Johansen <[email protected]>