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
I've found I very often need to assert something using a regex .test().
.test()
I currently do:
assert(/markdown-body/.test(css));
But if that fails the error message isn't very helpful.
I could include css in the second argument, but I still wouldn't know what the regex was.
css
Could maybe be useful to have an assertion method for this:
assert.reTest(/markdown-body/, css);
Which on failure would print the regex and the full content of css.
Needs a better name. And probably needs a .notReTest too.
.notReTest
@kevva thoughts?
The text was updated successfully, but these errors were encountered:
Wish this could be in .true() and .false() but it might be hard to have a second optional argument with msg being a string too.
.true()
.false()
msg
But I'm +1 for this. We can change the name later on.
Sorry, something went wrong.
Sort of closed in kevva/claim@7e2270a.
No branches or pull requests
I've found I very often need to assert something using a regex
.test()
.I currently do:
But if that fails the error message isn't very helpful.
I could include
css
in the second argument, but I still wouldn't know what the regex was.Could maybe be useful to have an assertion method for this:
Which on failure would print the regex and the full content of
css
.Needs a better name. And probably needs a
.notReTest
too.@kevva thoughts?
The text was updated successfully, but these errors were encountered: