-
-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Called with diff doesn't work #1376
Comments
sinon-called-with-diff can be used as a temporary solution it produces colorful diffs when arguments mismatch. |
It was implemented as part of In your example, you're not using Something like this example should work for you: 'use strict';
const test = require('tape');
const sinon = require('sinon');
const wraptile = require('wraptile');
test('wraptile: fn: args: first', (t) => {
const fn = sinon.stub();
const f = wraptile(fn, 'hello111');
const f1 = f();
f1();
sinon.assert.calledWith(fn, 'hello');
t.end();
}); |
As I understood from #1179 #1203 #773 called with diff should be implemed already.
2.1.0
Linux cloudcmd 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
,tape
What did you expect to happen?
I expect to see
called with diff
:What actually happens
I see no
diff
.How to reproduce
See this for an example
The text was updated successfully, but these errors were encountered: