Format object arguments in mock verify #191

Closed
kbackowski opened this Issue Oct 25, 2012 · 1 comment

Projects

None yet

2 participants

Contributor

mock = sinon.mock();
mock.withArgs({a: 1});
mock({a: 2});
mock.verify();

I get the following error information :

Anonymous mock received wrong arguments ([object Object]), expected [object Object]

Where i was expecting something like :

Anonymous mock received wrong arguments {a: 2}, expected {a: 1}

I think it's similar to issue #148

Contributor

This has been fixed by #194

@mroderick mroderick closed this Aug 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment