-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Compare string parameter with toHaveBeenCalledWith(regexp) #243
Comments
👍 |
I am not sure whether @pivotal will see this issue, but in the meantime, you may use I have created a stackoverflow question about this. |
Would something like this be OK:
Using something like |
We've made a tracker story for this. You can follow along here: https://www.pivotaltracker.com/story/show/58120558 |
Thanks for the heads up @slackersoft. 👍 |
- Also move the asymmetric testers into their own dir for easier locating. [#58120558] Fix #243
Hi!
I couldn't find a way to check a string that was passed to a function with toHaveBeenCalledWith, using a regexp.
In particular, I'm passing URL with timestamp, and I'd like to validate it with something like
In code I have:
In test want to do something like:
Is there any way to do this or, at least, check a string argument with regexp?
The text was updated successfully, but these errors were encountered: