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

sinon.match.like now matches true(ish) and false(ish) values.

d5995a3b79d83cabf3f4468431056d335f1ac683 authored over 12 years ago by Max Antoni <[email protected]>
Merge pull request #96 from keithamus/issue-94

Restore global methods properly, fixes #94

59e74d3ffe53e3132f2c3e8c5e7676618f8c167a authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #115 from mantoni/FixForIssue113

spy(undefined, "property") should throw

60ee42f703f801015d88e3b56eefd8f602c158bd authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #114 from mantoni/master

Matcher improvements

2ed2300c19800509b64d82d16ac9a8c29cb35375 authored over 12 years ago by Christian Johansen <[email protected]>
spy(undefined, property) now throws as expected.

74af9fe53f7f3540a499ccbad6e784292bfd6f63 authored over 12 years ago by Maximilian Antoni <[email protected]>
Fixed exception message.

dca5d124e9be8df23f0684debd309268039f83dc authored over 12 years ago by Maximilian Antoni <[email protected]>
Added 'and' & 'or' for matchers.

4f4a46b9740165f7175ce538ab57db3ec870a9b1 authored over 12 years ago by Maximilian Antoni <[email protected]>
Integrated sinon.match.re into sinon.match.like. Added substring matcher to sinon.match.like. Made sinon.match.like, sinon.match.has and sinon.match.hasOwn work for any object type.

db136ab7f7505ef0b51f489c98d1097530c00d13 authored over 12 years ago by Maximilian Antoni <[email protected]>
Indentation

b81c19470a84632944e820e062e4e00c0959e2e8 authored over 12 years ago by Maximilian Antoni <[email protected]>
Merge pull request #110 from wwalser/recursiveClock

Fix for timer callbacks that contain a clock.tick, issue #109

7418a6310c82b3980ae17a335633d78608ad18cc authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #104 from dira/patch-1

Added a section on how to run the tests.

63d828cbc58710f49d445e39b6683c60b9515f35 authored over 12 years ago by Christian Johansen <[email protected]>
Fix for timer callbacks that contain a clock.tick, issue #109

fce8eaced132f1790d6d7dcf9f879f38fdc0b7d1 authored over 12 years ago by wwalser <[email protected]>
Spies depend on match

dd2dcc75757635e8eff20c26a23789f4770a0904 authored over 12 years ago by Christian Johansen <[email protected]>
Up version, license and copyright information

f702b11bd6ceb9a54efb5475cf9b4601241294c1 authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #106 from mantoni/master

has and hasOwn matchers

2e2ba76b8843563e0aad41deb48084bd4027873b authored over 12 years ago by Christian Johansen <[email protected]>
sinon.match.has and sinon.match.hasOwn

4d7f8c0a5c1fa8fcb7b9a9c5a84b2c63c6ded6d3 authored over 12 years ago by Maximilian Antoni <[email protected]>
Readme: added how to run tests on Node

5c443f9d5779e97c4da0ce1734a1f094c99011a3 authored over 12 years ago by Irina Dumitrascu <[email protected]>
Added a section on how to run the tests.

79c3f8677070be21177b5deee3807deae1ffc2d9 authored over 12 years ago by Irina Dumitrascu <[email protected]>
Merge pull request #103 from mantoni/master

Support for fuzzy argument matching

0dc388ac35352bef4cf9afb6e9228b531d621547 authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #100 from roddik/master

Fixed setTimeout and setInterval parameters

5970cadf8334342fd74d76358c9dc6e99a4a3450 authored over 12 years ago by Christian Johansen <[email protected]>
spy.returned now works with matchers and compares objects deeply.

1edfb55519ab469ac6e8ba1df1c423ef94eb53a9 authored over 12 years ago by Maximilian Antoni <[email protected]>
Changed any from function to property. Added typeOf shortcuts for boolean, number, string, object, function, array, regexp and date.

467932f82a374680a722ebfe92ae53730be3110c authored over 12 years ago by Maximilian Antoni <[email protected]>
Refactored implementation according to feedback from Christian to use a functional approach instead of the Matcher constructor.

b0bf557a5c5929439c53e3704005c5d1986b79fc authored over 12 years ago by Maximilian Antoni <[email protected]>
Made setTimeout and setInterval pass args

3f307076da3305c680d9b14e5dded373d445745e authored over 12 years ago by Rodion Vynnychenko <[email protected]>
Added new sinon.match.any, same, typeOf, instanceOf, re and like functions. The result of a call can be used with spy.calledWith.

eeb47b66f6a2c8786ca0054bc39799a788d7a927 authored over 12 years ago by Maximilian Antoni <[email protected]>
Comment out "should delete global property" test for now, as per #96

616350e78b23c77bcb4549eea688cb3ba9af693b authored over 12 years ago by Keith Cirkel <[email protected]>
Merge pull request #97 from KonradHolowinski/master

Fixes a problem with sandboxes not restoring stubs when a whole object was stubbed

3eba59dcb1f94bf4278171a31c1d5ae07e5ad77d authored over 12 years ago by Christian Johansen <[email protected]>
Collection keeps methods in fakes array instead of object wrapper now

039d3ec6d91984b5057686b0a01778e9c3d97a90 authored over 12 years ago by Konrad Holowinski <[email protected]>
Restore global methods properly, fixes #94

When useFakeTimers() is called, stubGlobal() will assign "hadOwnProperty"
to the stubbed method,...

103a8e6208e892d4b33a5825b28c5d2904429c1d authored over 12 years ago by Keith Cirkel <[email protected]>
Fixes collection object stub return value

Fixed collection stub to return valid object

Added test verifying proper collection stubbing be...

26dc544f3592d9cd3362d2a6bfa31612a160f1fe authored over 12 years ago by Konrad Holowinski <[email protected]>
Fallback to previous version

5472de6c1847379cfca4e013277f030fc12b96e8 authored over 12 years ago by Konrad Holowinski <[email protected]>
Fixes a problem with sandboxes not restoring stubs when a whole object was

stubbed

All object methods stub restore failing tests

Added object restore wrapper allows resto...

80791dcc02fb85478a2c9ca615fa0b3dfffad349 authored over 12 years ago by Konrad Holowinski <[email protected]>
Up version

044440cfff4dfcaae3b2e105566cd37fd0febce1 authored over 12 years ago by Christian Johansen <[email protected]>
1.3.2 meta. Added some missong contributors to the AUTHORS file

5cca5d2222ba58d0893d2e9210dfaca305743eb4 authored over 12 years ago by Christian Johansen <[email protected]>
White-space cleanup

06e760d010041795e3d6662dcfe754071b709f61 authored over 12 years ago by Christian Johansen <[email protected]>
Stronger Node inference in sandbox

1bf833123d91d2ea8a63a3d17833246f9e1f0fed authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #85 from joymax/master

Fixed work with sinon.useFakeTImers() and Rhino.js 1.7R3

e30b6499cee4b7bdc0f11a26845b99d30efc2f0f authored over 12 years ago by Christian Johansen <[email protected]>
Fixed issue with sinon.useFakeTimers() and Rhino.js 1.7R3

e73ccb4282b9ed42f8bf1f017a4c7e6659de9db6 authored over 12 years ago by Max Klymyshyn <[email protected]>
Merge pull request #83 from viadeo/41fde3bb4a2f0c816de1f4c0e6154a1d790e4b95

Fixing Internet Explorer stubbing of functions that originate in a different window

c36e2872e3f5f5e66598c8b1dff0137f2e234453 authored over 12 years ago by Christian Johansen <[email protected]>
Another go at the formatting problem ...

43d7adc80c444b12fe250182ecabf6d25877857d authored over 12 years ago by Cormac Flynn <[email protected]>
Formatting was slightly off

8be017b26d6ff837bb035919bef139b49fbca7bc authored over 12 years ago by Cormac Flynn <[email protected]>
FIX Internet Explorer misreports the type of Function objects

originating in an external window as "object" instead of "function".
Instead of using typeof, we ...

41fde3bb4a2f0c816de1f4c0e6154a1d790e4b95 authored over 12 years ago by Cormac Flynn <[email protected]>
Honor thy contributors

e12aff0e1ef11ef7b4079c550417a710bb84faba authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #76 from ebi/calls_on

callsArgOn and callsArgOnWith

a0afaa59a7c8b7b17e947e4015a063dda783565e authored over 12 years ago by Christian Johansen <[email protected]>
Some generall cleanup work in the stub tests

c95df9e4f344a6304673f12bc16d988cdbf74c4a authored over 12 years ago by Tobias Ebnöther <[email protected]>
Implemented stub.yieldsToOn

db973aaf0a66cd6475f2b56abd90f98b3f79a8fd authored over 12 years ago by Tobias Ebnöther <[email protected]>
Implemented yieldsOn

7fef122afdfbdc48c7db9109a14d66645f488acd authored over 12 years ago by Tobias Ebnöther <[email protected]>
Merge pull request #79 from DomenicDenicola/patch-1

Fixing `clearTimeout` to not throw when called for nonexistant IDs.

1e0eb3e1024ef905dfd5dd742a9823398ff02ced authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #80 from Picklive/master

Fixes issue #75

9261a0629e277794092ed2f12b6e787d2bd5a41d authored over 12 years ago by Christian Johansen <[email protected]>
fixes issue #75

a9ad9fdbcb51c9c920fa4fe0e6cb2478a5c219c0 authored over 12 years ago by Tim Ruffles <[email protected]>
failing test for issue 75

c8c8ae88cd9383c198942124132809d641aa1e92 authored over 12 years ago by Tim Ruffles <[email protected]>
Fixing `clearTimeout` to not throw when called for nonexistant IDs.

Since sinon is in strict mode, `delete` throws when used on a non-existent property, causing `c...

80c38bd3e4b8813ab74ef27a4db3646e4778e31c authored over 12 years ago by Domenic Denicola <[email protected]>
Implemented callsArgOnWith

eb7e7321a279ceea3dcdac8028ad8ac32480da83 authored almost 13 years ago by Tobias Ebnöther <[email protected]>
Implemented callsArgOn

52d188536925059a0a1f45629743ab923db174cf authored almost 13 years ago by Tobias Ebnöther <[email protected]>
Merge pull request #73 from felixge/patch-1

Remove sudo from install instructions

851f27276090c5b82e7ebdd73d0790b0f572ee87 authored almost 13 years ago by Christian Johansen <[email protected]>
Remove sudo from install instructions

Sudo is not needed / recommended when installing npm modules locally.

0b997221cd82011a53ecbb947805e20ed8384625 authored almost 13 years ago by Felix Geisendörfer <[email protected]>
Merge pull request #72 from mantoni/initSpyWithArgs

Spys created using 'withArgs' should get initialized

3079c47a5a0d43eaec6659722a5c6e5f528adaa6 authored almost 13 years ago by Christian Johansen <[email protected]>
Spys that are created using 'withArgs' now get initialized with previous calls to the original spy.

d85121024da4da52153200822501887e9ce1b637 authored almost 13 years ago by Max Antoni <[email protected]>
Merge pull request #71 from mbrochh/readme_fix

Added correct project URL and a clarification about installing from the repo

a99edb58296a5e1a620579a412bca8d587867a2e authored almost 13 years ago by Christian Johansen <[email protected]>
Added correct project URL and a clarification about installing from the repo

0e514eaee1370e2299a25842417e5ab7bf4779ca authored almost 13 years ago by Martin Brochhaus <[email protected]>
Up version

a2f47d861e3c2311a40ce946fb453436fcc1e4a1 authored almost 13 years ago by Christian Johansen <[email protected]>
Fix bug: isNode used twice in same scope

- Caused "boolean is not a function" error

4901849b04a89b45c6f20fb7ad3f7bb797ee063d authored almost 13 years ago by Christian Johansen <[email protected]>
Formatting

f7ff19380bdd44605a718adc054ac3822e810520 authored almost 13 years ago by Christian Johansen <[email protected]>
Indentation

03d768fc4f2d581d9c8a8e17f7bed416a40cb22a authored almost 13 years ago by Christian Johansen <[email protected]>
Kill trailing white-space

58abf881d83744e9b86fdf1385a27cf231a4f4b1 authored almost 13 years ago by Christian Johansen <[email protected]>
Update changelog to include last minute fixes

5458aec1cc9230548d162434dd91913d797c9d23 authored almost 13 years ago by Christian Johansen <[email protected]>
calledBefore passes for a before b, regardless of overall order

- Solves a bug when either spy has been called more than once
- Fixes #69

d136862d2abeda43a28bbc6355c50b0978dce046 authored almost 13 years ago by Christian Johansen <[email protected]>
Quick and dirty silent mode for node tests

bbe74cb6b1d41643c0dbe741e8362b27d433494d authored almost 13 years ago by Christian Johansen <[email protected]>
Buster is no longer a dependency

- Browser build and node module will use buster-format if available
- NPM will not install b...

8423873f019bcaa093ce9bdf168c3b4175e6cc82 authored almost 13 years ago by Christian Johansen <[email protected]>
Merge pull request #68 from mantoni/master

deepEqual broken when comparing objects without enumerable properties or null

0e1013bac5028a01ec0782ee9d1359460560fc02 authored almost 13 years ago by Christian Johansen <[email protected]>
Merge pull request #70 from neonstalwart/patch-2

fail gracefully without buster

3b9172b3948047420fd5898ac37ccd9f16bac9e8 authored almost 13 years ago by Christian Johansen <[email protected]>
fail gracefully without buster

cc16d3e97208af53d779217896df72ed05cbd760 authored almost 13 years ago by Ben Hockey <[email protected]>
Commented FormatTest back in.

6876b6be1d6694458d1d377fba63c71fefd4bef6 authored almost 13 years ago by Max Antoni <[email protected]>
deepEqual fixes

sinon.deepEqual returned true for (null, {}), (/.*/, {}) and (new
Error(), null).

3f7145ee3cc951738ebd4b910b06cefb3e00c36a authored almost 13 years ago by Max Antoni <[email protected]>
Changelog and AUTHORS with all contributors

cbba4d9f1e4f3ec08282cff7b08f5df1fdfbdd3a authored almost 13 years ago by Christian Johansen <[email protected]>
Up changelog for 1.3.0

3a466bab16bdf8d322eb919f2751c7b3a2f8698a authored almost 13 years ago by Christian Johansen <[email protected]>
Up version

0e5bfd3164b153c24e53e9dba0375712f7bd3e29 authored almost 13 years ago by Christian Johansen <[email protected]>
Merge pull request #51 from Picklive/working

White-list XHR requests to allow through

d394875ff59a430d090742e791fb9ee5e14aa68f authored almost 13 years ago by Christian Johansen <[email protected]>
Format objects with buster-format

- Bundle buster as dependency
- Hide buster in closure
- Modify build script accordingly (...

931d00d875dfb56633b8d7d58b6ccafc63f8546f authored almost 13 years ago by Christian Johansen <[email protected]>
Support server response handlers that are just a function

- Fixes #64

f29782f8376c4ed662be14670954076250ed1268 authored almost 13 years ago by Christian Johansen <[email protected]>
Log errors to sinon.log (defaults to noop)

- Fixes #47

f79b7cd39f2befa01e5152fd87195ed7f22be865 authored almost 13 years ago by Christian Johansen <[email protected]>
Make sure XHRs can complete even if onreadystatechange handler fails

ae3b017d7ddee33845eee8f3f1855574cf12d363 authored almost 13 years ago by Christian Johansen <[email protected]>
Asynchronously re-throw error

- Avoids hampering the flow
- Avoids hiding the error

eb221f4486dfefd80c6840af5bf6011b20bd865f authored almost 13 years ago by Christian Johansen <[email protected]>
Explain why some exceptions are swallowed

ff35ec268bac0405d94b4246d2d62c3570518c69 authored almost 13 years ago by Christian Johansen <[email protected]>
Mirror entire Date.prototype, including toUTCString when faking

- Fixes #61

6cdb1456d4a7a32a19097af43695b816d3a0c056 authored almost 13 years ago by Christian Johansen <[email protected]>
Fail with error when using a date object as now in useFakeTimers

- Resolves #49

4f968e503ce7280c668a35a18827938746553498 authored almost 13 years ago by Christian Johansen <[email protected]>
Browser -> Environment

0bd26b0f1998c540b76ef6412bfd3216e6133b05 authored almost 13 years ago by Christian Johansen <[email protected]>
assertTypeOf not available in node-shim

dbf9bbd00d309c1f4fe7e65be6bb8cbb18e81155 authored almost 13 years ago by Christian Johansen <[email protected]>
Decide Date.now support at fake-time

- Resolves #31

4d32af22f175e88a535ecca3db3e3ade909845fa authored almost 13 years ago by Christian Johansen <[email protected]>
Mirror properties on replaced function properties

59ad15a74bd686f49c6d67b2cb40f349611a7cc0 authored almost 13 years ago by Christian Johansen <[email protected]>
Merge branch 'master' of github.com:cjohansen/Sinon.JS

a402c8297cb35c1cb9151fbd8c1de4934f499808 authored almost 13 years ago by Christian Johansen <[email protected]>
Default this object to global in exposed asserts

- Fixes #66
- Bug affects strict mode enabled environments, where this may indeed
be null

a8234fedb97fcea4da2cfb0c926d058df5f79e97 authored almost 13 years ago by Christian Johansen <[email protected]>
Default both call ids when comparing

12a6d1483083d4fcbc68a7fe3154d000cd354f3f authored almost 13 years ago by Christian Johansen <[email protected]>
Merge pull request #63 from keturn/better-debugger-compatibility

sinon.test: use try/finally instead of catch and throw.

8c54229d5884efc6132694586e32af5c6fd6b4b6 authored almost 13 years ago by Christian Johansen <[email protected]>
sinon.test: use try/finally instead of catch and throw.

Catch-and-throw obscures where the exception originated.

bda602df99044e4319aca1aa930e170d6f62a92f authored almost 13 years ago by Kevin Turner <[email protected]>
added test of running defaked XHR - working for modern browsers and IE8,

will test 6,7 and 9 when I've access to test machines

Total 3327 tests (Passed: 3327; Fails: 0; ...

13067b19b9fc4b8b7665937a64e6933089fa7bca authored almost 13 years ago by Tim Ruffles <[email protected]>
attribute copying is conformant to spec. ie throwing errors on access anyway.

f36b44b59d42fbe4b341b87c5a7f271a669e92fd authored almost 13 years ago by Tim Ruffles <[email protected]>
remove magic numbers

e8d7b9741597e637a8c7558b74207ae5ec90b8c1 authored almost 13 years ago by Tim Ruffles <[email protected]>
reinstate test helper code

c1d34400607f21c45d97ecd6ee55dd22e36fa8d5 authored almost 13 years ago by Tim Ruffles <[email protected]>
cleanup after changes

388aa37086d6f831bccbef78cfbe0953b3cd08a7 authored almost 13 years ago by Tim Ruffles <[email protected]>