CrabScout. The best software around.
Search

Sinon.js

Replace JavaScript callbacks with test doubles and inspect how code calls them.

sinonjs · Code and testing

GitHub projectOpen source Open on GitHub

How to try it

In a Node.js project, install [email protected]. Use a stub for a fictional inventory source and verify it receives one expected argument.

What we tested

22.1.0. Use a stub for a fictional inventory source and verify it receives one expected argument. Returned the controlled sample data and verified the named argument and call count.

Reviews

Rate this repo

More to explore

  • GleamWrite typed code for the Erlang virtual machine or JavaScript.GitHub projectOpen source
  • PixiSet up reproducible software environments for projects.GitHub projectOpen source
  • LycheeCheck that document links point to reachable paths.GitHub projectOpen source

Share

What the labels mean

Save to your library