Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in sinon

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

Unit testing Cloud Functions for Firebase: what's the "right way" to test/mock `transaction`s with sinon.js

How to check if clearTimeout was called with sinon.useFakeTimers?

Sinon - when to use spies/mocks/stubs or just plain assertions?

How can I declare globals for jshint to ignore in ember-cli?

check nth call in Sinon stubbed method

node.js mocha.js sinon

nodejs unit test error "sinon.restore is not a function"

node.js mocha.js sinon spy

Using DOMParser in javascript testing with mocha and JSDOM

How to stub document method with sinon - React

sinon - create stub that returns own arguments

node.js sinon stub