Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upreject does not fail if argument is of the wrong type #119
Comments
This comment has been minimized.
This comment has been minimized.
Thanks for reporting this. I don't have the time to address this right now, but I'll take a PR to fix it. |
This comment has been minimized.
This comment has been minimized.
I have submitted a PR @cjihrig , can you review it please? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I expected the following test to fail:
But surprisingly it does not. From the documentation, it is clear that the second argument to
reject()
needs to be a string or a regex, but would it not be safer to make the test fail if that is not the case?