Running karma tests using mocha, chai, sinon (and sinon-chai). I have test with a spy
describe('addUser', function(){
it('should add user', inject(function(UsersModel){
var dataSpy = sinon.spy(UsersModel, 'userAdditionalData');
userData = {...};
authData = {...};
UsersModel.someMethod();
dataSpy.should.have.been.calledWith(authData, userData);
}));
});
And on failure I get the output:
"message": "expected userAdditionalData to have been called with arguments [object Object], [object Object]"
How can I get the reporter to give me the details of these objects?