Top "Sinon-chai" questions

Sinon–Chai provides a set of custom assertions for using the Sinon.

Sinon.JS - How can I get arguments from a stub?

I am trying to use Sinon to test a JS component which looks a bit like this... import Bootbox from "../…

javascript sinon sinon-chai
How do I expect a function to be called with specific args with sinon, mocha, and chai in nodejs?

I have been having a problem trying to make sure Q.ninvoke is called with the args I am passing …

node.js mocha.js sinon chai sinon-chai
Invalid Chai property when calling calledOnce

I'm having problems writing tests in javascript with sinon and chai. I'm trying to check if a function is called …

javascript sinon sinon-chai
How to mock an axios request using sinon modules

There seems to be so many different ways to do this, but I am trying to use just sinon, sinon-test, …

javascript node.js axios sinon sinon-chai
Has been called with object assertion

Function I'm spying on, receives object as an argument. I need to assert that the function been called with certain …

javascript unit-testing sinon sinon-chai
How to unit test localStorage using sinon

I am trying to test localStorage using sinon. Basically I am very new to unit testing so this might be …

unit-testing reactjs sinon enzyme sinon-chai