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

1.5.2 meta

525d333cd9f0b97b1c53fddfdc21a3ddbba62f42 authored almost 12 years ago by Christian Johansen <[email protected]>
Test that documents behavior of stub.reset

470e7c9ba7c715ffafefb75a614a9269da619710 authored almost 12 years ago by Christian Johansen <[email protected]>
Revert "added stub.reset(). clears yields* and callsArg* sequence."

This reverts commit ec5a0f30011ecd40879624c5c2174dffa113d27c.

0bdef693d16e90fd5be5b14a81fe62927b126f78 authored almost 12 years ago by Christian Johansen <[email protected]>
Revert "calling spy.reset directly from stub.reset"

This reverts commit 3868a5a9a30a1441ed0bc3df9a3d04a5df7f7633.

cf4c18ce8da4b177bbbb8217fdbd67f56ea8c714 authored almost 12 years ago by Christian Johansen <[email protected]>
1.5.1 meta

17a3e5ef1d52433b32be21e9a68f4f150ef2c755 authored almost 12 years ago by Christian Johansen <[email protected]>
Merge pull request #195 from meyertee/master

Added stub.reset() to clear yields*/callsArg* sequence

56631647538aaa2fe9028aa2b6d917c51339cf82 authored almost 12 years ago by Christian Johansen <[email protected]>
calling spy.reset directly from stub.reset

3868a5a9a30a1441ed0bc3df9a3d04a5df7f7633 authored almost 12 years ago by Thomas Meyer <[email protected]>
Merge branch 'master' of git://github.com/cjohansen/Sinon.JS

5b7967e7a2a36bec4060ab10587660154a26224d authored almost 12 years ago by Thomas Meyer <[email protected]>
Merge pull request #194 from kbackowski/master

Format arguments output when mock expectation is not met

325bacadadc4e99d4a73f7c0368c98b97ca5c95b authored almost 12 years ago by Christian Johansen <[email protected]>
added stub.reset(). clears yields* and callsArg* sequence.

ec5a0f30011ecd40879624c5c2174dffa113d27c authored almost 12 years ago by Thomas Meyer <[email protected]>
Format arguments ouput when mock excpetation is not met

f98cfb09a7dc84f9ebfa30591815b25f4334999e authored almost 12 years ago by kbackowski <[email protected]>
Merge pull request #193 from scothis/ie8

IE 8 support

6a37717376fdafd34de42d8f7371f79f53ae94ad authored almost 12 years ago by Christian Johansen <[email protected]>
Tests that assume strict mode should only be run in environemnts that support strict mode

722feb1521b7f87c8afed63db372037e5f8aabe3 authored almost 12 years ago by Scott Andrews <[email protected]>
Fix sinon base in IE 8

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]>
Fix spy() in IE 8

In IE 8:
- eval("function () {}") === undefined
- the reference to proxy.invoke inside the proxy...

789a47d83e4e47aaad37b2dac555904504783d5d authored almost 12 years ago by Scott Andrews <[email protected]>
Merge pull request #192 from TheCloudlessSky/image-stub-function-fix

Fix for #189

787ecfa8402929817ff90466822ed513a7099963 authored almost 12 years ago by Christian Johansen <[email protected]>
Ensure window.Image can be stubbed.

779e14c3b2d669211e5b7b72115a273a003713a7 authored almost 12 years ago by Adrian Phinney <[email protected]>
Merge pull request #190 from telaviv/fix_incorrect_buster_file_reference

Changed reference to buster file in build.

e0928364e6eb0f2d064d53a196ca6f7b597183d0 authored almost 12 years ago by Christian Johansen <[email protected]>
Changed reference to buster file in build.

a1a6e23c6535b24621e2794c725ea41e56f99458 authored almost 12 years ago by Shawn Krisman <telaviv@github>
Up version

c017e3f8d4b0497f6dd0372f7aa23c2b60b369bc authored about 12 years ago by Christian Johansen <[email protected]>
Don't force "use strict" on Sinon consumers

- Fixes #183

eb8bb5bdcb55e8b7e227e9ca02964bebe3b3d4cf authored about 12 years ago by Christian Johansen <[email protected]>
Merge branch 'master' of github.com:cjohansen/Sinon.JS

2e0d3bb6b32bd5632b1a6f8d5785b44b5e955258 authored about 12 years ago by Christian Johansen <[email protected]>
Don't assume objects have hasOwnProperties

- Fixes #188

c60242eab3faedf90cf92c7ccb022f28fd9082ba authored about 12 years ago by Christian Johansen <[email protected]>
Merge pull request #181 from mantoni/length

Preserve function length for spy

5ccd460e7c1423a9e8927357c948c74966add7b0 authored about 12 years ago by Christian Johansen <[email protected]>
My release script.

Beware, it makes wild assumptions on directory layout and whatnot

To be continued

5a6f457b06884398d98892fb848f3ba43d45a02c authored about 12 years ago by Christian Johansen <[email protected]>
Merge branch 'master' of github.com:cjohansen/Sinon.JS

8974d039fb622a5053d47e036aabb10ca68547a9 authored about 12 years ago by Christian Johansen <[email protected]>
Replaced repetitive implementation with evil eval.

facc8280baa4713a95321f4a31cb50f811064570 authored about 12 years ago by Maximilian Antoni <[email protected]>
Retain function length.

b756c7789518d27f4ff367b932dc13ea5a3554a1 authored about 12 years ago by Maximilian Antoni <[email protected]>
Merge pull request #180 from mantoni/master

Add 'invokeCallback' alias for 'yield' on calls

20144c9509807cdb48bd32048b156ce038f553a8 authored about 12 years ago by Christian Johansen <[email protected]>
Add 'invokeCallback' alias for 'yield' on calls.

'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]>
Merge pull request #179 from mantoni/master

Added matcher support for calledOn

d5bcc4bf22f4705ef7f7c47f7bdcb8fc1782cc8a authored about 12 years ago by Christian Johansen <[email protected]>
Merge remote-tracking branch 'upstream/master'

56f3d8eaa49a5f25a4826d86af990d4f50a134f1 authored about 12 years ago by Maximilian Antoni <[email protected]>
Added matcher support for calledOn. Fixes issue #168.

8bd5d2b0daef8f0bb50e17e8da651308ad76e2eb authored about 12 years ago by Maximilian Antoni <[email protected]>
Merge pull request #175 from nuc-gr/expectation-messages

Retain original expectation messages, for failed mocks under sinon.test

6bfa30463e5c4848f1dce754af27e26c9be1e73f authored about 12 years ago by Christian Johansen <[email protected]>
Retains original expectation message, when sinon.test verifies mocks

In case invokeMethod throws an ExpectationError, we just restore the
sandbox and propagate the e...

2360f5e6a2fe555062ce8f3a6ca7e1a8aac8b9d4 authored about 12 years ago by Giorgos Giannoutsos <[email protected]>
Merge pull request #173 from domenic/thenYields

Add `thenYields` for sequential yielding. Closes #157.

a2a35b1ca3a8b136e9f1f3d54cd4f953947a938d authored about 12 years ago by Christian Johansen <[email protected]>
Allow yields* and callsArg* to create sequences of calls.

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]>
Include all dependencies

cec38290b31f82abdd57cfb5a9daf8228cdee150 authored about 12 years ago by Christian Johansen <[email protected]>
Merge pull request #160 from jankopriva/master

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]>
sinon.js can catch itself in endless loop while filling stub prototype with asynch methods

fca5648590b46739c142b7e0e3907031990ce7a0 authored over 12 years ago by Jan Kopriva <[email protected]>
1.4.2

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

Fix: sinon.match(Object) does not compare arrays

4b2c550a84709cac91e43b79962950c3ad27647f authored over 12 years ago by Christian Johansen <[email protected]>
1.4.1 update

326a0e1d03c6ae5390f73d4ca9a058db3880af3e authored over 12 years ago by Christian Johansen <[email protected]>
1.4.1 update

3919834d0dc775338680f09eb5e829b41a41c698 authored over 12 years ago by Christian Johansen <[email protected]>
Fix: sinon.match(Object) does not compare arrays.

a71a7b3603fa55302735da96a68dd4a332ecfae5 authored over 12 years ago by Maximilian Antoni <[email protected]>
A bunch of wonderful people

60e89deb36023150aa604d8b23db3140f3591649 authored over 12 years ago by Christian Johansen <[email protected]>
Changelog for 1.4.0

a9aebb0bc412e72e8db00a757b5e30c80fec564f authored over 12 years ago by Christian Johansen <[email protected]>
Make fake server safe to load on node.js

706ab5b78e6eb8ca5b15aa7917d7c91896e27775 authored over 12 years ago by Christian Johansen <[email protected]>
Add notCalled property to spies

ba7c76131c499696072bc5290447761d942e2ecf authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #148 from domenic/better-printf

Format args when doing `spy.printf("%*")`

753348249637e4931ea1d889dd9df7a0a3183e00 authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #151 from Raynos/master

Add buster-format as dependency

18366df01ca9bc169638b89d183d58e4fe6ef9d6 authored over 12 years ago by Christian Johansen <[email protected]>
If you require it, add it to the dependencies

8ae196e5186b1c3fa74a92aff0d634c4a3e922f7 authored over 12 years ago by Raynos <[email protected]>
Format args when doing `spy.printf("%*")`

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]>
Merge pull request #142 from glenjamin/master

Easier stubbed fluent interfaces: stub.returnsThis()

01b616d73aa1ca06de9e8f2b67faa56dc843bb79 authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #146 from TEHEK/issue-133-rebase

Async versions `callsArg*` and `yields*` for stubs

31b68218a9416dfd9731ca7392a538d13e11e652 authored over 12 years ago by Christian Johansen <[email protected]>
Async versions `callsArg*` and `yields*` for stubs

2821d754b684f1fd57869fc117317120a8abe82c authored over 12 years ago by TEHEK Firefox <[email protected]>
Merge pull request #145 from mantoni/master

Fix: spy.reset does not reset fakes created by spy.withArgs

1ddc2a724499799e45fcd074da2f43429bfb63df authored over 12 years ago by Christian Johansen <[email protected]>
Fix: spy.reset did not reset fakes created by spy.withArgs

f359ee2ba4e5c0361ec1781374df17ba43d3342d authored over 12 years ago by Maximilian Antoni <[email protected]>
allow yeilds() and family to be used along with returns()/throws() and family

efd2b666ed0deee7331409f115cd7a31392fb27f authored over 12 years ago by Glen Mailer <[email protected]>
stub.returnsThis() for easily faking fluent interfaces like jQuery

034d6b0ea322af1547ebd96dd4db3b925ea026fc authored over 12 years ago by Glen Mailer <[email protected]>
Merge pull request #140 from mantoni/master

calledWithNew and alwaysCalledWithNew for assert

dceb7e5d7d900e7bcbffc42a3700f8d869452a6d authored over 12 years ago by Christian Johansen <[email protected]>
calledWithNew and alwaysCalledWithNew for assert

e49737a66cb445b026d55bedeb0a0cd861a8f9a2 authored over 12 years ago by Maximilian Antoni <[email protected]>
Merge remote-tracking branch 'upstream/master'

8ef76e772690ea35133c1e6537757c67031392c7 authored over 12 years ago by Maximilian Antoni <[email protected]>
Add test for restoring full object stubs

4ae38c8aad0cd51372f36cf5c846c948bbcd07a6 authored over 12 years ago by Christian Johansen <[email protected]>
Readme tweak

84161a16e5945b02bab144d502f8383c5651605b authored over 12 years ago by Christian Johansen <[email protected]>
Configure Travis CI

7cef801e653acd2b1e9d1a29ffe9766a53039dd5 authored over 12 years ago by Christian Johansen <[email protected]>
Make runner work with both current and upcoming buster-test

67456b0e911e79a168fb09a644ce6689f55bf2b4 authored over 12 years ago by Christian Johansen <[email protected]>
Undo mistakenly commited failing test

05bc6bc68c9e1d93e3677d1cf1d3818a90d29a80 authored over 12 years ago by Christian Johansen <[email protected]>
Update Readme to describe new test runner

8665518990464ade9b288f6708c06cb9a1fe8561 authored over 12 years ago by Christian Johansen <[email protected]>
Remove unused TODO file

6f3c0fc045152ec031fa51dd975af3ddf0bb9996 authored over 12 years ago by Christian Johansen <[email protected]>
Test configuration for browsers

- Using Buster.JS

4816c7c58c44dd772dd236e67bba61d146d498eb authored over 12 years ago by Christian Johansen <[email protected]>
Working `npm test`

8e1c17687113182b19811640f0b0cc7b0e6c9a66 authored over 12 years ago by Christian Johansen <[email protected]>
Don't require the match implementation to load spies

0b92c0044d91f84e4f355366956be3683ddb349b authored over 12 years ago by Christian Johansen <[email protected]>
Remove JsTestDriver configuration

948163d98ce19fd481e996c31c188868f2be7050 authored over 12 years ago by Christian Johansen <[email protected]>
Remove unneeded Makefile

edb1a1ad3e29579c3cbed7bc85304878d32e5580 authored over 12 years ago by Christian Johansen <[email protected]>
Don't assume match is available in deepEqual

0d9cad3df938a93bbafbab58a49ca3174566c29d authored over 12 years ago by Christian Johansen <[email protected]>
Remove useless test

acd7f0c1ce40d58376735becc75960e5585d4a50 authored over 12 years ago by Christian Johansen <[email protected]>
Port fakeTimers tests

4bd81d11efdb81906df742035a828b103ec9b906 authored over 12 years ago by Christian Johansen <[email protected]>
Port stub tests to Buster.JS

130023d3fea1e0228b5fcf0c242120cd3c51c768 authored over 12 years ago by Christian Johansen <[email protected]>
Port tests to Buster.JS

- Works on both Node and browsers
- Has good async support
- Dogfooding (I develop Buster....

33783ed5ffd1f7304c0050481f05109d5f1463d7 authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #131 from teknynja/master

Allow mocks to use .withArgs and .withExactArgs with no arguments

1bc1a254f6fc7367c2e4f9ebc56850bf87f3f35d authored over 12 years ago by Christian Johansen <[email protected]>
Add support for no args on .withArgs and .withExactArgs

0c4f17fbb5d7dc71cb61877c6f2eabe7e3d4e11d authored over 12 years ago by Tek Nynja <[email protected]>
Avoid hasOwnProperty for host objects

Fixes issue with restoration in IE8 (and presumably 6, 7)

65b0ee26d24cc9a72912434a47a5c475b703e981 authored over 12 years ago by Christian Johansen <[email protected]>
Fix bug where expect.atLeast failed when minimum calls where received

f4d2369d04c20c35319859fa36f5c4ab918f14b9 authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #122 from mantoni/calledLike

sinon.match.defined, sinon.assert.calledLike and friends

98e9bfbec77c66e70267537a5db2274846e6f38c authored over 12 years ago by Christian Johansen <[email protected]>
sinon.match works properly with numbers and uses a test function if found in objects.

4acdf7d30001a04b18df134219ef12d90dadf8bd authored over 12 years ago by Maximilian Antoni <[email protected]>
Added sinon.match.truthy and sinon.match.falsy.

5cc1da571fa3da12a69c61944d507dd4c8f5b9a5 authored over 12 years ago by Maximilian Antoni <[email protected]>
Fixed assertion messages.

400cb35b12be77431b554e0b2868bc4dd4581d5c authored over 12 years ago by Maximilian Antoni <[email protected]>
Merged sinon.match.like into sinon.match. Renamed calledLike to calledWithMatch.

992815e89932146c52fbe4786deae6944183c75a authored over 12 years ago by Maximilian Antoni <[email protected]>
Merge remote-tracking branch 'upstream/master'

f3ffe09fc0750d69784f5fbfb0943b4d2fcc7daf authored over 12 years ago by Maximilian Antoni <[email protected]>
Merge pull request #123 from kpdecker/verify-pass

Call pass when verify succeeds

152521b7c74b545cfe15ef96086ed9ce88fa3e0d authored over 12 years ago by Christian Johansen <[email protected]>
Call pass when verify succeeds

Fixes errors seen in qunit when tests are using expectations only.

d51f129e3a8385809608edc387a986c144b688c1 authored over 12 years ago by kpdecker <[email protected]>
calledLike, alwaysCalledLike and neverCalledLike

e28f07d24028bb97943c43226785540f226352f5 authored over 12 years ago by Maximilian Antoni <[email protected]>
Added sinon.match.defined.

10db86a7c9e20f7e6da97f6a4ef16893ac08d5f6 authored over 12 years ago by Maximilian Antoni <[email protected]>
Merge pull request #120 from kpdecker/node-unit-tests

Node unit tests

5de9fa997dbbdb60fd73363df940c406a652b11f authored over 12 years ago by Christian Johansen <[email protected]>
Merge pull request #119 from kpdecker/undelete-object

Failover to property assignment in release

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

True(ish) and false(ish) support for sinon.match.like

9a05ad00feeebc06edbd0e284436cfeae301f87b authored over 12 years ago by Christian Johansen <[email protected]>
Fix toString format under Node

b21922c8383894979ef4edf6b460a265311bac00 authored over 12 years ago by kpdecker <[email protected]>
Prevent multiple restore for fake timers

Was causing the base implementation to be lost.

383625677bd34fa4400293696d457ca86b75afab authored over 12 years ago by kpdecker <[email protected]>
Failover to property assignment in release

Seen under iOS 5.1 some system objects such as localStorage will fail silently on delete,
leavin...

4c452c56e3242475940608eda35ba9e76f091700 authored over 12 years ago by kpdecker <[email protected]>