Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in sinon

How can I test if a setTimeout was called appropriately?

nodejs: How to stub AWS s3 getobject with sinon

How to mock return value of async function?

What are alternatives for Sinon.js (JS mocking library)?

unit-testing sinon

How to stub the return value on a mocked method in SinonJS

Stub a method that does a callback using Sinon

sails.js + mocha + supertest + sinon: how to stub sails.js controller function

Unit Test function that returns Mongoose promise

Sinon js check stub called with exact arguments

How to mock request-promise-native for NodeJS unit testing?

node.js unit-testing sinon ava

Don't sinon.js spys catch errors?

Stubbing a function in sinon to return different value every time it is called

Stubbing S3 uploads in Node.js

Test value of variable inside javascript function - sinon / chai

How can `document.execCommand` be unit tested?

mocha.js sinon jsdom

Sinon Stub not working for exported function

javascript sinon sinon-chai

ES2016 Class, Sinon Stub Constructor

Calling different callbacks for stub on firstcall and second call

sinon

Difference between fake, spy, stub and mock of sinon library ( sinon fake vs spy vs stub vs mock )