Add ability to show diff when args are different in sinon.
npm i sinon sinon-called-with-diff --save
const diff = require('sinon-called-with-diff');
const sinon = diff(require('sinon'));
const stub = sinon.stub();
stub('hello');
stub.calledWith('world');
Will produce output:
wrong arguments in functionStub
actual: [
"hello"
]
expected: [
"world"
]
MIT