Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in sinon

How can I test network errors in fetch api?

javascript sinon chai

Node.js sinon stubbing a function in parallel executions causes failed tests

How to mock a module import with Sinon and ReactJS

Sinon stub a function defined in the same file

Sinon: how to create a stub that resolves multiple calls

javascript typescript sinon

Stub a function for only one argument

How do I mock a 'timeout' or 'failure' response using Sinon / Qunit?

Sinon stubbing giving 'is not a function' error

Testing for method calls using sinon on module.exports methods

Sails.js: Unable to stub a helper for unit testing purposes

How do I stub and spy at the same time

Enzyme: How to test onSubmit function passed as prop?

spying on bunyan log - NodeJS

Getting TypeError: Cannot stub non-existent own property when stubbing async method

Has buster.js / sinon something like `jasmine.any()`?

javascript sinon buster.js

then method of resolved promise not called

Original function is called instead of stub

Using SinonJS stub (with rewire)

How to unit test localStorage using sinon

sinon - create stub that returns own arguments

node.js sinon stub