Add ability to show diff when args are different in sinon.
You can also replace sinon
with stub wich is drop-in replacement of sinon.stub()
with diff support.
Install
npm i sinon sinon-called-with-diff --save
How to use?
const diff = ;const sinon = ; const stub = sinon; ; stub;// returnsfalse
Will produce output:
wrong arguments in functionStubactual: [ "hello"] expected: [ "world"]
License
MIT