-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
test: fix tests that check error messages #3727
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1222,11 +1222,11 @@ assert.throws(function() { | |
|
|
||
| assert.throws(function() { | ||
| new Buffer(); | ||
| }, /must start with number, buffer, array or string/); | ||
| }, /must start with number, buffer, array or string/i); | ||
|
|
||
| assert.throws(function() { | ||
| new Buffer(null); | ||
| }, /must start with number, buffer, array or string/); | ||
| }, /must start with number, buffer, array or string/i); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why ignore case is necessary in these two places?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The error string is
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then, why not fix the string itself? That would be better, right?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll do that on the landing.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I made the regex case insensitive because if that were already the case, this test wouldn't have broken at all. |
||
|
|
||
|
|
||
| // Test prototype getters don't throw | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this one missed in the original commit, by the way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. And it made one of the
pathtests a pain to fix.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@micnic want to do a second pass if there are more errors that were missed, like this one?