I've updated the version of chai in my project and after updating it to 3.5.0, some tests are failing. I see that I'm not able to test arguments of the function for which I did spy.
I created a fiddle to reproduce my issue with sample method here - JSFiddle
describe('Mocha + Chai JsFiddle', function() {
it('should test arg', function() {
var spy = sinon.spy(test, 'testFun');
test.testFun(5);
expect(spy).to.have.been.called.with(5);
});
});
Can anyone suggest how can we test argument in newer version chai.js?