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

Merge pull request #509 from nicholasstephan/master

Update .npmignore

6f8856fdc8b7d5350d52f4bd4840b83e4265c02b authored over 10 years ago by Christian Johansen <[email protected]>
Update .npmignore

Added /test directory to npm ignore

c52896a92f588de57c7a7c13dc948b0e8f65a64d authored over 10 years ago by Nicholas Stephan <[email protected]>
1.10.3

29abd353a037adaaea697b93729be2ff164101eb authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #505 from Krinkle/xdr-lf

xdomainrequest: Convert to Unix (LF) new lines

6a541bb84aac2e7f2a418da9cbce01ea40c4ffc9 authored over 10 years ago by Christian Johansen <[email protected]>
Remove unused "exports" variable for makePublicAPI

Alternatively, if the # of parameters really matters for define() and/or backwards compatibility...

fe586d41b07df5758cae9e4378b0ea3919796484 authored over 10 years ago by Jordan Hawker <[email protected]>
xdomainrequest: Convert to Unix (LF) new lines

Follows-up 50d3cad, 26e0399.

707030dc7bc6fe57a6328e2a7be8cab52ed894ed authored over 10 years ago by Timo Tijhof <[email protected]>
Merge pull request #497 from larsthorup/master

Allow null as argument to clearTimeout and clearInterval

4cc7c7bb09caf475c13f4271456ca53c552d0172 authored over 10 years ago by Christian Johansen <[email protected]>
Allow null as argument to clearTimeout and clearInterval

5f45d2e89ca7c2495ab8ae3b6709ed590d4ca0f1 authored over 10 years ago by Lars Thorup <[email protected]>
Merge pull request #491 from pwnall/web-workers

Fix loading in Web Workers.

ab91d15ff313a0373497c1aff1026f6dcbbdad5d authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #490 from shinnn/master

Use SVG badge

6c61192ce415dd037a2a055722a21b9d055d2d0c authored over 10 years ago by Christian Johansen <[email protected]>
Fix loading in Web Workers.

When sinon.js is loaded via an importScript in a Web Worker, "this" is
not set to the global obj...

85457384d040e46b05ca4819af4e650f4dcf6938 authored over 10 years ago by Victor Costan <[email protected]>
Use SVG badge

SVG badges look beautiful on retina displays.

24a4af672e39c244cea30319ee9fb1e6cc0a8e17 authored over 10 years ago by Shinnosuke Watanabe <[email protected]>
Up version

25c272e5987e3f94c728b2f30c0fa3c85431c539 authored over 10 years ago by Christian Johansen <[email protected]>
Up version

94da394d67779ae8c66eea3e3b36e682dcf315fe authored over 10 years ago by Christian Johansen <[email protected]>
Fix `returnValue` and `exception` on spy calls

92ac04f01acdc56fcb3e6f4a481cdc61d48d9ba7 authored over 10 years ago by Maximilian Antoni <[email protected]>
Merge pull request #489 from brianmhunt/master

Make the fakeServer log function overloadable

1a35affb64c5c75a8cb09aeaada40bd7ee3472be authored over 10 years ago by Christian Johansen <[email protected]>
Make the fakeServer log function overloadable

389b227e505fd62180af9aab158fb851d7511384 authored over 10 years ago by Brian M Hunt <[email protected]>
Merge pull request #487 from lightblade/master

Wraps async test in sinon sandbox

f90ad342b54d041c2fffa1fc65fd27f79068448d authored over 10 years ago by Maximilian Antoni <[email protected]>
add semi colon

5c783ba5701f2063737d89e778b9aa9ab694a2e8 authored over 10 years ago by Ming Liu <[email protected]>
added test case for async test wrapper

2d465a924aa4cf060ced27b33e3c476ea47950a6 authored over 10 years ago by Ming Liu <[email protected]>
added async test wrapper for mocha compatibility

12d9543336a073f2da5265f26783b1a283ead78b authored over 10 years ago by Ming Liu <[email protected]>
Update Authors

d2554142e989dc21be2be15d359e68b5e5ef4405 authored over 10 years ago by Christian Johansen <[email protected]>
Update Changelog

83da83b7617a1ca0cdd76b8ca1951d62f6bb0c9f authored over 10 years ago by Christian Johansen <[email protected]>
Fix faux AMD for build

141c1ca1e147582dba4b4b2a0289f0634898fcae authored over 10 years ago by Christian Johansen <[email protected]>
Add fake xdomain tests to dist test

944997358703bcc1ee431ee4e38a9384862b3bf9 authored over 10 years ago by Christian Johansen <[email protected]>
Up version

d5956c118c8e9afa697cd3d837a47f8c1061b367 authored over 10 years ago by Christian Johansen <[email protected]>
Fix formatting and newlines in XDomain

50d3cad37eae3bae8a6ea0a08cc56db40f4b15cf authored over 10 years ago by Christian Johansen <[email protected]>
Add XDomain to build

3ddcc4301bd3dd57a8c04f3cdd1c3254d5a8d9ea authored over 10 years ago by Christian Johansen <[email protected]>
Fix script loading order in test setup

cb653470ab7eb5f65fd8135625abba6f80c9736d authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #480 from JamesBarwell/fix-spy-createCallProperties

Fix spy createCallProperties not created early enough

46777a29776b2c1e7109db2cc5e18cbb20c9bbbf authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #475 from artsyca/issue/471

Reinstate check for typeof `require` == "function"

c71dcd716ab374f9a461c408b5bd1a1bff8ddcca authored over 10 years ago by Christian Johansen <[email protected]>
Merge branch 'jsok-xdomainrequest'

d76b83bc3d8949a3a1ea724077396713bdf62983 authored over 10 years ago by Christian Johansen <[email protected]>
Ensure that spy createCallProperties is set before function invocation

b9c2fb44383d152ba26aafa52774200fb7addceb authored over 10 years ago by James Barwell <[email protected]>
Add failing test for spy createCallProperties to have populated before function invocation

d8b77c1102283b7679a39385549e9090c9622e1f authored over 10 years ago by James Barwell <[email protected]>
Reinstate check for typeof `require` == "function"

This is still an imperfect test for the presence of CommonJS, but
at least it will not attempt t...

44bc56ae6c2dc1d7c649e9ef58b9e9fc760f69b9 authored over 10 years ago by Alex Kessaris <[email protected]>
Add XDR tests to main suite

0503af164927c535c08edb8e05840bc702aef061 authored over 10 years ago by Jonathan Sokolowski <[email protected]>
Build script should include xdr_ie.js

04bd4264b4d96f1082ef17d28dc7a5b942f2c8cb authored over 10 years ago by Jonathan Sokolowski <[email protected]>
XDR: Add tests for fake XDR exposing

cd506d3cb46b48e879cb5646236784a2e5036f34 authored over 10 years ago by Jonathan Sokolowski <[email protected]>
Fix reponseText handling of simulatetimeout() and ontimeout event

320b1adca878f0be76a848ae4f50d3d23371c3ea authored over 10 years ago by Jonathan Sokolowski <[email protected]>
Update test names s/onreadystatechange/readyStateCHange

f6d2cd12098e1c643fb8fb56bc44dbb02ea1dd11 authored over 10 years ago by Jonathan Sokolowski <[email protected]>
Style cleanup

c1779a3d12aecd4ed0147aed4d175d509395fc60 authored over 10 years ago by Jonathan Sokolowski <[email protected]>
Add FakeXDomainRequest tests

d4eef7f6ec3fea2604f6c7862bf0ddc82e4b0dbe authored over 10 years ago by Jonathan Sokolowski <[email protected]>
XDomainRequest should throw error if setResponseBody called before request has been sent

33ade0d299167141b4ce032f04631f2908c94797 authored over 10 years ago by Jonathan Sokolowski <[email protected]>
XDomainRequest has content-type request header, even if always set to text/plain

6035d4570c167c6bba1761291554f58fed2cb784 authored over 10 years ago by Jonathan Sokolowski <[email protected]>
Indentation fixes

355da2abdcb82acb04f40fa43f0f62389843c534 authored over 10 years ago by Jonathan Sokolowski <[email protected]>
Initial xdomainrequest support

No filtering support

26e0399be5efda3e07c8e4c7fb2f469c1c6bbe31 authored over 10 years ago by Søren Enemærke <[email protected]>
Remove superfluous test

495cefbb3f3b9013b07d004deb76d7198d0060c6 authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #462 from tbranyen/fix-amd-dependencies

Fixes behavior of AMD dependencies.

446e42affeb4762cb85adeeb904aa006d153af7f authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #468 from glenjamin/named-stubs

Allow explicit naming of spies and stubs

778e18561f73e9db4c0c453369472ddbf6913566 authored over 10 years ago by Christian Johansen <[email protected]>
Fixes behavior of AMD dependencies.

- Switches to Simplified CommonJS AMD syntax which allows code reuse
with Node.
- Adds define ...

d46a88ccc58f4111fbeb765d3b42332f7d31392c authored over 10 years ago by Tim Branyen <[email protected]>
Allow explicit naming of spies and stubs

3f32be09e30e1b3d4d05962ee60863f788546293 authored over 10 years ago by Glen Mailer <[email protected]>
Merge pull request #457 from BryanDonovan/calledWithExactly_bug

Called with exactly bug

e52fe0f9be8ec7c5de6251f169bdeba95a963ff6 authored over 10 years ago by Christian Johansen <[email protected]>
minor test name change

b747834afd9009ba6d43db9c142fabf8846bba15 authored over 10 years ago by Bryan Donovan <[email protected]>
fixing test name, adding another calledWithExactly test

af860590230b6160b6a48ff3e90eb06c2fc7e42a authored over 10 years ago by Bryan Donovan <[email protected]>
Fix for calledWith() bug #456

c6c4706af45175d87f8e6348c446773d3b6b16fb authored over 10 years ago by Bryan Donovan <[email protected]>
deepEqual test for unequal objects

21b9fc1e3dbfc4c6073b8207ae88a5b5aef16d8b authored over 10 years ago by Bryan Donovan <[email protected]>
adding another calledWithExactly test

8fed3b301970687af30e47eea64dc743f51dd838 authored over 10 years ago by Bryan Donovan <[email protected]>
unit test to demonstrate calledWithExactly bug

f1c8ec37d2093074a6fe25ae083fb1d3dc07838a authored over 10 years ago by Bryan Donovan <[email protected]>
Merge pull request #450 from ground5hark/master

fix fakeServer.respond() in IE8 by properly allowing queue to be spliced

0c3a05f51cb7ecd4e1ecbd61c35904e8a6fd3d2c authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #454 from GCheung55/patch-1

Remove extra `module.exports.assert`

b2917ff6755933623c6045325d34ad9942c0f7fc authored over 10 years ago by Christian Johansen <[email protected]>
Remove extra `module.exports.assert`

`module.exports.assert` is already assigned at line 352. Remove the extra line of setting it again.

87d12fb7c3307f7da4e5c709e43c13b3dd1c3c23 authored over 10 years ago by Garrick Cheung <[email protected]>
Merge pull request #452 from benfleis/master

update 'returns numeric id' tests for setTimeout, setImmediate and setInterval

9b30a9e49f77fc8efdaa9c016374ff7844b06942 authored over 10 years ago by Maximilian Antoni <[email protected]>
update 'returns numeric id' tests for setTimeout, setImmediate and setInterval

e0f62224d571e96e6e47d978e3f5ba2b55a362a5 authored over 10 years ago by ben fleis <[email protected]>
Merge pull request #451 from Medium/xiao-fix-clearTimeout-for-nodejs

Fix clearTimeout() for Node.js mode

8ab8a2ab45923a5299107c74c4df46d4db1f64af authored over 10 years ago by Maximilian Antoni <[email protected]>
Fix clearTimeout() for Node.js mode

335b48c795d6d21a7d1a442af7837ec2e1ff7c36 authored over 10 years ago by Xiao Ma <[email protected]>
fix fakeServer.respond() in IE8 by properly allowing queue to be spliced

60ab124d21f4181785ecb7f3edb2dd1e10bbd6b1 authored over 10 years ago by John Bernardo <[email protected]>
AMD spec calls for require.amd to be an object

Fixes #448

f42e9c8bda76d841e9d6d6969b4cdefa465462b2 authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #449 from deltaidea/fix-wrapMethod

Fix wrapMethod error handling

1a3e42666c7d491fa3910cd8fc1fd55e82f3c1ab authored over 10 years ago by Christian Johansen <[email protected]>
Fix wrapMethod error handling

sinon.wrapMethod was actually failing with this error when the property
wasn't defined:
"Cannot ...

51b76fa54183870cc5715f2fadfe1a964bf009e3 authored over 10 years ago by Nikita Litvin <[email protected]>
Fix strangely worded tests

3d7685052b30520aafc5109fee65db1053fd62be authored over 10 years ago by Christian Johansen <[email protected]>
1.9.1

c21099b0fd35d191aa6236e084e82d724eaa651c authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #437 from benfleis/master

fake timer creation returns an object having .ref() and .unref() calls

4fdd894a6500a14f06accd02a11782d3fbde877b authored over 10 years ago by Maximilian Antoni <[email protected]>
update timer code per suggestions from @mantoni, pull request #437

1f122e6e120eff643e3dfda6915113c39302bb03 authored over 10 years ago by ben fleis <[email protected]>
Fix Travis build

Travis seems to have an older npm version installed and does not know
about ^ yet. Changed the d...

7b11db1c8d05d6311a280c3fd39a190cb0e3beba authored over 10 years ago by Maximilian Antoni <[email protected]>
Fix an issue passing NaN to spy#calledWith (Issue #441)

755cfcc1fac62d76465af836ee6fdd067e9d7de0 authored over 10 years ago by Blake Israel <[email protected]>
update fake timer addTimer to return object or number based on calling

setTimeout, and checking its type. this should give mock returns consistent
with the underlying ...

d8f04bab042c29ae5cd08cd654c5dcd08657a3ff authored over 10 years ago by ben fleis <[email protected]>
fake timer creation returns an object having .ref() and .unref() calls, so that

nodejs timer functionality can be supported

cf2518e067bff8ffafc9bf0a6fe25e15936e0775 authored over 10 years ago by ben fleis <[email protected]>
Merge pull request #435 from kriskowal/mr

Explicate dependency on util package

a525ee6dc40dc43f9fd110912b153a0820449e5b authored over 10 years ago by Christian Johansen <[email protected]>
Explicate dependency on util package

[Mr][] and [Mop][] serve a similar function to [Browserify][] but
supports refresh-to-reload dur...

1c5908882a4f2f271e539cd056017533b6664d10 authored over 10 years ago by Kris Kowal <[email protected]>
1.9.0

e27c47ed8c13c304d3459e6d741f07d2323de0b5 authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #425 from gtothesquare/master

Added tests for new fake events ProgressEvent and CustomEvents in event.js

08e630fcfe1a81352a934268906eae7544873f03 authored over 10 years ago by Christian Johansen <[email protected]>
Added tests for new fake events ProgressEvent and CustomEvents in event.js.

d3d7b1032a243092be55913c58647f370f79bfdc authored over 10 years ago by gtothesquare <[email protected]>
Merge pull request #420 from gtothesquare/master

Added extra test to see if ProgressEvent is a function and not Object. T...

3b4521eb8db09ce4c6328bf7372594527548cccf authored over 10 years ago by Christian Johansen <[email protected]>
Added ProgressEvent and CustomEvent to sinon.Event. This will fake the original events in the fake xhr. Fixes issue #409.

09a8c1d2d4cc2af700c7cef5edc126f1d575400b authored over 10 years ago by gtothesquare <[email protected]>
Merge pull request #424 from fearphage/fix-402/fake-xhr-compliance

Prevent setRequestHeaders from being called twice (like setRequestBody)

58097ccf4fb378ed659a5cd299576fcf922ec0d2 authored over 10 years ago by Christian Johansen <[email protected]>
prevent setRequestHeaders from being called twice

d5f830605f3dc086430db2a630522d9cc776c6d0 authored over 10 years ago by Phred <[email protected]>
Merge pull request #410 from ropez/master

Add sinon.assert.match

7ac894ae884f3daba45464e0792d16980e506991 authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #422 from NAndreasson/fix/onload-this

Fix onload call, 'this' should be equal to XHR object

3b05f6491cc9b4fcbfd52a4aef2777e69496ff0e authored over 10 years ago by Christian Johansen <[email protected]>
More specific feature test for ProgressEvent

Avoids IE11 bug, where ProgressEvent is not callable with new. Fixes #409

07787d4156352a8f16125cc3ba740372a2ad8caa authored over 10 years ago by Christian Johansen <[email protected]>
Check for ProgressEvent support but use sinon.Event

Avoids IE/host object problems while maintaining browser support semantics.

c28f47f917984167c88e24b04f6aa400654cf749 authored over 10 years ago by Christian Johansen <[email protected]>
Merge pull request #411 from lusini/Remove-sandbox-injected-values-on-restore

Remove sandbox injected values on restore

a98003395c082be6124388b0c98675b40c2e9909 authored over 10 years ago by Christian Johansen <[email protected]>
Fix onload call, 'this' should be equal to XHR object

4fa26245d861f1860e5b41d52d7f29734424f01a authored over 10 years ago by Niklas Andreasson <[email protected]>
Add test for assert.match failure message

28b0f3a5c8b3dd3c389181b8342bde88885389c4 authored over 10 years ago by Robin Pedersen <[email protected]>
Merge pull request #415 from glenjamin/fluent-match

Coerce matcher.or/and arguments into matchers

44b707d0e23e80866036999d380b9fdea2f3f2d3 authored over 10 years ago by Maximilian Antoni <[email protected]>
Coerce matcher.or/and arguments into matchers

0a40fe61af502a5e0f07d344137b137fbb1766c8 authored over 10 years ago by Glen Mailer <[email protected]>
added tests

92c6b989481ffee3090e6d5e1f8b3d92c2ebc1a1 authored over 10 years ago by Marcus Hüsgen <[email protected]>
remove sandbox injected properties on restore

e1bcec82071fffe06678978e3715f48247d002d6 authored over 10 years ago by Marcus Hüsgen <[email protected]>
Add test for sinon.assert.match

56c41ed79398fb0544ea57b1cdb9d79b0cc60668 authored over 10 years ago by Robin Pedersen <[email protected]>
Add sinon.assert.match

Makes it possible to use the Sinon matcher API on arbitrary data,
without a spy having been called.

e32999b9d437e4bf9fa7a4d34909a8eb861b81e9 authored over 10 years ago by Robin Pedersen <[email protected]>
Don't use buster.format any more

ca32555db09e4d2e24a0280c3fa29a972212415a authored over 10 years ago by Christian Johansen <[email protected]>