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
Currently we can do
var brew = td.function() td.when(brew(td.matchers.contains({ingredient: 'beans'}))).thenReturn('coffee')
It would be nice to do something like this:
var brew = td.function() td.when(brew(td.matchers.contains({ ingredient: td.matchers.isA(String) }))).thenReturn('coffee')
Or even:
var brew = td.function() td.when(brew({ ingredient: td.matchers.isA(String) })).thenReturn('coffee')
This is especially true for complex objects or dates. Jasmine equivalent
The text was updated successfully, but these errors were encountered:
I believe this is a dupe of: #109
Sorry, something went wrong.
Ah yes you are correct. Sorry
No branches or pull requests
Currently we can do
It would be nice to do something like this:
Or even:
This is especially true for complex objects or dates.
Jasmine equivalent
The text was updated successfully, but these errors were encountered: