You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When verifying parameters, the various matchers report the value they were expecting, but not the value they received. This sometimes makes it tricky to figure out what went wrong when the test fails.
1) Notifier
sends correct email:
Error: Expected "send(string(expected: [email protected], got: [email protected]))" to be called 1 time(s). But has been called 0 time(s).
I'm a new user to the library, wondered if there would be any interest in making the default toString() on the existing matchers support something like this? Happy to contribute a PR if this would be of use to anyone?
The text was updated successfully, but these errors were encountered:
When verifying parameters, the various matchers report the value they were expecting, but not the value they received. This sometimes makes it tricky to figure out what went wrong when the test fails.
Simple example:
This results in an error message:
I've put together a quick custom matcher that improves toString() to report the value received as well as the requested match:
The new call to verify:
and the new output:
I'm a new user to the library, wondered if there would be any interest in making the default toString() on the existing matchers support something like this? Happy to contribute a PR if this would be of use to anyone?
The text was updated successfully, but these errors were encountered: