Skip to content
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

Note when ignoreExtraArgs is used for a failed verification #60

Closed
searls opened this issue Nov 27, 2015 · 0 comments · Fixed by #150
Closed

Note when ignoreExtraArgs is used for a failed verification #60

searls opened this issue Nov 27, 2015 · 0 comments · Fixed by #150

Comments

@searls
Copy link
Member

searls commented Nov 27, 2015

Suppose you have this invocation and failed verification:

print('some', 'stuff', 'out', 'like', 8)

td.verify(print('some', 'stuff', 'NOPE'), {ignoreExtraArgs: true})

This will throw:

Error: Unsatisfied verification on test double.

  Wanted:
    - called with `("some", "stuff", "NOPE")`.

  But was actually called:
    - called with `("some", "stuff", "out", "like", 8)`.

It would be better if it printed a hint like:

  Wanted:
    - called with `("some", "stuff", "NOPE")`, ignoring any additional arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant