We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was a little disappointed by this:
eatBiscuit(44) td.verify(eatBiscuit(td.matchers.isA(Date))) Error: Unsatisfied verification on test double. Wanted: - called with `({})`. But was actually called: - called with `(44)`.
It really seems like the isA matcher should have and use a hook to report something such that we'd see:
isA
Wanted: - called with `([something of type 'Date'])`.
The text was updated successfully, but these errors were encountered:
(The same goes for all the built-in matchers; the real work here is the hook to modify the argument description)
Sorry, something went wrong.
This looks like it's already completed, unless there is more you'd like to include with this ticket:
https://github.com/testdouble/testdouble.js/blob/master/src/stringify/anything.coffee#L13 https://github.com/testdouble/testdouble.js/blob/master/src/matchers/index.coffee#L21
Do we have a test for something like I pointed out at the top?
is https://github.com/testdouble/testdouble.js/blob/master/test/src/verify-test.coffee#L97 sufficient?
This was indeed fixed when we changed the matchers format to have a name property.
name
No branches or pull requests
I was a little disappointed by this:
It really seems like the
isA
matcher should have and use a hook to report something such that we'd see:The text was updated successfully, but these errors were encountered: