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

.exactlyWith and .exactlyWhen #8

Open
mal opened this issue Apr 28, 2013 · 0 comments
Open

.exactlyWith and .exactlyWhen #8

mal opened this issue Apr 28, 2013 · 0 comments

Comments

@mal
Copy link

mal commented Apr 28, 2013

I'm currently writing tests for message passing with the cluster module. In some cases it would be useful to check that a number of certain type of message were received.

What this feature request amounts to is some sort of .exactlyWith.

Additionally, consider something like .exactlyWhen which could only bump the count if the args match a filter.

spy.should.have.been.called.exactly(3).when(function (a, b) { return a > b });
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