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

feat: mock.toBeCalledWithoutArgs() #167

Open
3 tasks
crookse opened this issue May 8, 2022 · 1 comment
Open
3 tasks

feat: mock.toBeCalledWithoutArgs() #167

crookse opened this issue May 8, 2022 · 1 comment

Comments

@crookse
Copy link
Member

crookse commented May 8, 2022

Summary

What:

Spies have .verify(...).toBeCalledWithoutArgs(). Mocks should use this logic in the .expects(...) method chaining.

Why:

Would be nice to create an expectation on a mock that a method was called with args.

Acceptance Criteria

Below is a list of tasks that must be completed before this issue can be closed.

  • Write documentation
  • Write unit tests
  • Write integration tests

Example Pseudo Code (for implementation)

const mock = Mock(...).create();

mock.expects("someMethod").toBeCalledWithoutArgs();

mock.verifyExpectations();
@crookse crookse mentioned this issue May 8, 2022
9 tasks
@crookse
Copy link
Member Author

crookse commented Sep 22, 2022

i still need to document this

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

No branches or pull requests

1 participant