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
525d333cd9f0b97b1c53fddfdc21a3ddbba62f42 authored almost 12 years ago by Christian Johansen <[email protected]>
470e7c9ba7c715ffafefb75a614a9269da619710 authored almost 12 years ago by Christian Johansen <[email protected]>
This reverts commit ec5a0f30011ecd40879624c5c2174dffa113d27c.
0bdef693d16e90fd5be5b14a81fe62927b126f78 authored almost 12 years ago by Christian Johansen <[email protected]>This reverts commit 3868a5a9a30a1441ed0bc3df9a3d04a5df7f7633.
cf4c18ce8da4b177bbbb8217fdbd67f56ea8c714 authored almost 12 years ago by Christian Johansen <[email protected]>17a3e5ef1d52433b32be21e9a68f4f150ef2c755 authored almost 12 years ago by Christian Johansen <[email protected]>
Added stub.reset() to clear yields*/callsArg* sequence
56631647538aaa2fe9028aa2b6d917c51339cf82 authored almost 12 years ago by Christian Johansen <[email protected]>3868a5a9a30a1441ed0bc3df9a3d04a5df7f7633 authored almost 12 years ago by Thomas Meyer <[email protected]>
5b7967e7a2a36bec4060ab10587660154a26224d authored almost 12 years ago by Thomas Meyer <[email protected]>
Format arguments output when mock expectation is not met
325bacadadc4e99d4a73f7c0368c98b97ca5c95b authored almost 12 years ago by Christian Johansen <[email protected]>ec5a0f30011ecd40879624c5c2174dffa113d27c authored almost 12 years ago by Thomas Meyer <[email protected]>
f98cfb09a7dc84f9ebfa30591815b25f4334999e authored almost 12 years ago by kbackowski <[email protected]>
IE 8 support
6a37717376fdafd34de42d8f7371f79f53ae94ad authored almost 12 years ago by Christian Johansen <[email protected]>722feb1521b7f87c8afed63db372037e5f8aabe3 authored almost 12 years ago by Scott Andrews <[email protected]>
In IE 8:
- Object.prototype.toString.call(undefined) === '[object Object]'
Don't assume Object....
65df865568379e32c63e785db1ab6ee141f50480 authored almost 12 years ago by Scott Andrews <[email protected]>
In IE 8:
- eval("function () {}") === undefined
- the reference to proxy.invoke inside the proxy...
Fix for #189
787ecfa8402929817ff90466822ed513a7099963 authored almost 12 years ago by Christian Johansen <[email protected]>779e14c3b2d669211e5b7b72115a273a003713a7 authored almost 12 years ago by Adrian Phinney <[email protected]>
Changed reference to buster file in build.
e0928364e6eb0f2d064d53a196ca6f7b597183d0 authored almost 12 years ago by Christian Johansen <[email protected]>a1a6e23c6535b24621e2794c725ea41e56f99458 authored almost 12 years ago by Shawn Krisman <telaviv@github>
c017e3f8d4b0497f6dd0372f7aa23c2b60b369bc authored about 12 years ago by Christian Johansen <[email protected]>
- Fixes #183
eb8bb5bdcb55e8b7e227e9ca02964bebe3b3d4cf authored about 12 years ago by Christian Johansen <[email protected]>2e0d3bb6b32bd5632b1a6f8d5785b44b5e955258 authored about 12 years ago by Christian Johansen <[email protected]>
- Fixes #188
c60242eab3faedf90cf92c7ccb022f28fd9082ba authored about 12 years ago by Christian Johansen <[email protected]>Preserve function length for spy
5ccd460e7c1423a9e8927357c948c74966add7b0 authored about 12 years ago by Christian Johansen <[email protected]>Beware, it makes wild assumptions on directory layout and whatnot
To be continued
5a6f457b06884398d98892fb848f3ba43d45a02c authored about 12 years ago by Christian Johansen <[email protected]>8974d039fb622a5053d47e036aabb10ca68547a9 authored about 12 years ago by Christian Johansen <[email protected]>
facc8280baa4713a95321f4a31cb50f811064570 authored about 12 years ago by Maximilian Antoni <[email protected]>
b756c7789518d27f4ff367b932dc13ea5a3554a1 authored about 12 years ago by Maximilian Antoni <[email protected]>
Add 'invokeCallback' alias for 'yield' on calls
20144c9509807cdb48bd32048b156ce038f553a8 authored about 12 years ago by Christian Johansen <[email protected]>'invokeCallback' was introduces on the spy object as an alias for 'yield', but it was never adde...
3f597eb666994859511679578376b1e26816d188 authored about 12 years ago by Maximilian Antoni <[email protected]>Added matcher support for calledOn
d5bcc4bf22f4705ef7f7c47f7bdcb8fc1782cc8a authored about 12 years ago by Christian Johansen <[email protected]>56f3d8eaa49a5f25a4826d86af990d4f50a134f1 authored about 12 years ago by Maximilian Antoni <[email protected]>
8bd5d2b0daef8f0bb50e17e8da651308ad76e2eb authored about 12 years ago by Maximilian Antoni <[email protected]>
Retain original expectation messages, for failed mocks under sinon.test
6bfa30463e5c4848f1dce754af27e26c9be1e73f authored about 12 years ago by Christian Johansen <[email protected]>
In case invokeMethod throws an ExpectationError, we just restore the
sandbox and propagate the e...
Add `thenYields` for sequential yielding. Closes #157.
a2a35b1ca3a8b136e9f1f3d54cd4f953947a938d authored about 12 years ago by Christian Johansen <[email protected]>Calling yields, callsArg, or their variants multiple times will now create a sequence of actions...
e14df7ac892dec618f119abfeb5c6676840bb911 authored about 12 years ago by Domenic Denicola <[email protected]>cec38290b31f82abdd57cfb5a9daf8228cdee150 authored about 12 years ago by Christian Johansen <[email protected]>
sinon.js can catch itself in endless loop while filling stub prototype with asynch methods
64658a36e62ad2bd6136268d2adb7f06b02fb0bf authored over 12 years ago by Christian Johansen <[email protected]>fca5648590b46739c142b7e0e3907031990ce7a0 authored over 12 years ago by Jan Kopriva <[email protected]>
4fa7a76ed0abe06491fc1cf836bb7f8ae649f6cb authored over 12 years ago by Christian Johansen <[email protected]>
Fix: sinon.match(Object) does not compare arrays
4b2c550a84709cac91e43b79962950c3ad27647f authored over 12 years ago by Christian Johansen <[email protected]>326a0e1d03c6ae5390f73d4ca9a058db3880af3e authored over 12 years ago by Christian Johansen <[email protected]>
3919834d0dc775338680f09eb5e829b41a41c698 authored over 12 years ago by Christian Johansen <[email protected]>
a71a7b3603fa55302735da96a68dd4a332ecfae5 authored over 12 years ago by Maximilian Antoni <[email protected]>
60e89deb36023150aa604d8b23db3140f3591649 authored over 12 years ago by Christian Johansen <[email protected]>
a9aebb0bc412e72e8db00a757b5e30c80fec564f authored over 12 years ago by Christian Johansen <[email protected]>
706ab5b78e6eb8ca5b15aa7917d7c91896e27775 authored over 12 years ago by Christian Johansen <[email protected]>
ba7c76131c499696072bc5290447761d942e2ecf authored over 12 years ago by Christian Johansen <[email protected]>
Format args when doing `spy.printf("%*")`
753348249637e4931ea1d889dd9df7a0a3183e00 authored over 12 years ago by Christian Johansen <[email protected]>Add buster-format as dependency
18366df01ca9bc169638b89d183d58e4fe6ef9d6 authored over 12 years ago by Christian Johansen <[email protected]>8ae196e5186b1c3fa74a92aff0d634c4a3e922f7 authored over 12 years ago by Raynos <[email protected]>
This makes assertions say "expected to have been called with { foo: 'bar' }" instead of "expecte...
5ee85c2384866ddcc7301056f859d45c2df7fbc0 authored over 12 years ago by Domenic Denicola <[email protected]>Easier stubbed fluent interfaces: stub.returnsThis()
01b616d73aa1ca06de9e8f2b67faa56dc843bb79 authored over 12 years ago by Christian Johansen <[email protected]>Async versions `callsArg*` and `yields*` for stubs
31b68218a9416dfd9731ca7392a538d13e11e652 authored over 12 years ago by Christian Johansen <[email protected]>2821d754b684f1fd57869fc117317120a8abe82c authored over 12 years ago by TEHEK Firefox <[email protected]>
Fix: spy.reset does not reset fakes created by spy.withArgs
1ddc2a724499799e45fcd074da2f43429bfb63df authored over 12 years ago by Christian Johansen <[email protected]>f359ee2ba4e5c0361ec1781374df17ba43d3342d authored over 12 years ago by Maximilian Antoni <[email protected]>
efd2b666ed0deee7331409f115cd7a31392fb27f authored over 12 years ago by Glen Mailer <[email protected]>
034d6b0ea322af1547ebd96dd4db3b925ea026fc authored over 12 years ago by Glen Mailer <[email protected]>
calledWithNew and alwaysCalledWithNew for assert
dceb7e5d7d900e7bcbffc42a3700f8d869452a6d authored over 12 years ago by Christian Johansen <[email protected]>e49737a66cb445b026d55bedeb0a0cd861a8f9a2 authored over 12 years ago by Maximilian Antoni <[email protected]>
8ef76e772690ea35133c1e6537757c67031392c7 authored over 12 years ago by Maximilian Antoni <[email protected]>
4ae38c8aad0cd51372f36cf5c846c948bbcd07a6 authored over 12 years ago by Christian Johansen <[email protected]>
84161a16e5945b02bab144d502f8383c5651605b authored over 12 years ago by Christian Johansen <[email protected]>
7cef801e653acd2b1e9d1a29ffe9766a53039dd5 authored over 12 years ago by Christian Johansen <[email protected]>
67456b0e911e79a168fb09a644ce6689f55bf2b4 authored over 12 years ago by Christian Johansen <[email protected]>
05bc6bc68c9e1d93e3677d1cf1d3818a90d29a80 authored over 12 years ago by Christian Johansen <[email protected]>
8665518990464ade9b288f6708c06cb9a1fe8561 authored over 12 years ago by Christian Johansen <[email protected]>
6f3c0fc045152ec031fa51dd975af3ddf0bb9996 authored over 12 years ago by Christian Johansen <[email protected]>
- Using Buster.JS
4816c7c58c44dd772dd236e67bba61d146d498eb authored over 12 years ago by Christian Johansen <[email protected]>8e1c17687113182b19811640f0b0cc7b0e6c9a66 authored over 12 years ago by Christian Johansen <[email protected]>
0b92c0044d91f84e4f355366956be3683ddb349b authored over 12 years ago by Christian Johansen <[email protected]>
948163d98ce19fd481e996c31c188868f2be7050 authored over 12 years ago by Christian Johansen <[email protected]>
edb1a1ad3e29579c3cbed7bc85304878d32e5580 authored over 12 years ago by Christian Johansen <[email protected]>
0d9cad3df938a93bbafbab58a49ca3174566c29d authored over 12 years ago by Christian Johansen <[email protected]>
acd7f0c1ce40d58376735becc75960e5585d4a50 authored over 12 years ago by Christian Johansen <[email protected]>
4bd81d11efdb81906df742035a828b103ec9b906 authored over 12 years ago by Christian Johansen <[email protected]>
130023d3fea1e0228b5fcf0c242120cd3c51c768 authored over 12 years ago by Christian Johansen <[email protected]>
- Works on both Node and browsers
- Has good async support
- Dogfooding (I develop Buster....
Allow mocks to use .withArgs and .withExactArgs with no arguments
1bc1a254f6fc7367c2e4f9ebc56850bf87f3f35d authored over 12 years ago by Christian Johansen <[email protected]>0c4f17fbb5d7dc71cb61877c6f2eabe7e3d4e11d authored over 12 years ago by Tek Nynja <[email protected]>
Fixes issue with restoration in IE8 (and presumably 6, 7)
65b0ee26d24cc9a72912434a47a5c475b703e981 authored over 12 years ago by Christian Johansen <[email protected]>f4d2369d04c20c35319859fa36f5c4ab918f14b9 authored over 12 years ago by Christian Johansen <[email protected]>
sinon.match.defined, sinon.assert.calledLike and friends
98e9bfbec77c66e70267537a5db2274846e6f38c authored over 12 years ago by Christian Johansen <[email protected]>4acdf7d30001a04b18df134219ef12d90dadf8bd authored over 12 years ago by Maximilian Antoni <[email protected]>
5cc1da571fa3da12a69c61944d507dd4c8f5b9a5 authored over 12 years ago by Maximilian Antoni <[email protected]>
400cb35b12be77431b554e0b2868bc4dd4581d5c authored over 12 years ago by Maximilian Antoni <[email protected]>
992815e89932146c52fbe4786deae6944183c75a authored over 12 years ago by Maximilian Antoni <[email protected]>
f3ffe09fc0750d69784f5fbfb0943b4d2fcc7daf authored over 12 years ago by Maximilian Antoni <[email protected]>
Call pass when verify succeeds
152521b7c74b545cfe15ef96086ed9ce88fa3e0d authored over 12 years ago by Christian Johansen <[email protected]>Fixes errors seen in qunit when tests are using expectations only.
d51f129e3a8385809608edc387a986c144b688c1 authored over 12 years ago by kpdecker <[email protected]>e28f07d24028bb97943c43226785540f226352f5 authored over 12 years ago by Maximilian Antoni <[email protected]>
10db86a7c9e20f7e6da97f6a4ef16893ac08d5f6 authored over 12 years ago by Maximilian Antoni <[email protected]>
Node unit tests
5de9fa997dbbdb60fd73363df940c406a652b11f authored over 12 years ago by Christian Johansen <[email protected]>Failover to property assignment in release
ae037c72ff79864b42804e1a9438a77cd81d8355 authored over 12 years ago by Christian Johansen <[email protected]>True(ish) and false(ish) support for sinon.match.like
9a05ad00feeebc06edbd0e284436cfeae301f87b authored over 12 years ago by Christian Johansen <[email protected]>b21922c8383894979ef4edf6b460a265311bac00 authored over 12 years ago by kpdecker <[email protected]>
Was causing the base implementation to be lost.
383625677bd34fa4400293696d457ca86b75afab authored over 12 years ago by kpdecker <[email protected]>
Seen under iOS 5.1 some system objects such as localStorage will fail silently on delete,
leavin...