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

Non user-readable error on try to assert not all function args #146

Open
DenTray opened this issue Oct 29, 2024 · 0 comments
Open

Non user-readable error on try to assert not all function args #146

DenTray opened this issue Oct 29, 2024 · 0 comments

Comments

@DenTray
Copy link
Collaborator

DenTray commented Oct 29, 2024

Steps to reproduce

  1. Implement method with the arg with the default value
image
  1. Mock it in test, and pass only first arg in expectation
image

Actual result

image

Expected result

Human readable error "Failed assert that function $name was called with $expectedCount arguments, actually it calles with $actualCount arguments."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant