substantial

substantial/sinon-stub-promise

Synchronous Promise stubbing for Sinon.JS

JavaScript
84
9
MIT License

sinon‑stub‑promise is a small utility that extends Sinon.JS stubs with synchronous promise‑like behavior. It lets developers write unit tests for code that uses promises without needing async handling—stubs can be set to `resolves` or `rejects` and the callbacks run immediately. The library is aimed at JavaScript testers (Node or browser) who use Sinon for mocking and want simpler, synchronous promise stubbing.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of substantial/sinon-stub-promise

Account's avatar
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Account's avatar
simple, flexible, fun test framework
Account's avatar
A lightweight library that provides tools for organizing asynchronous code
Account's avatar
JavaScript test spies, stubs and mocks.

Support the repos that depend on this repository

Top contributors

amay's profile
amay
31 contributions
a-b-r-o-w-n's profile
a-b-r-o-w-n
20 contributions
lexi-lambda's profile
lexi-lambda
1 contributions
Astridax's profile
Astridax
1 contributions
matthewrfindley's profile
matthewrfindley
1 contributions
depoulo's profile
depoulo
1 contributions
benzaita's profile
benzaita
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet