-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
test: added validation regex argument to test #9918
Conversation
In this change, I've added the regex pattern to the assert.throws() in order to provide the validation argument for the call.
This was made at the NINA Code and Learn session. |
@@ -46,7 +46,7 @@ file | |||
assert.throws(function() { | |||
console.error('write after end should not be allowed'); | |||
file.write('should not work anymore'); | |||
}); | |||
}, /write/); |
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.
Can a more substantial match be used here?
Ping @knarfishness: Can you address @cjihrig's comment? It would be great if the match could be more than one word. Probably this would be best: |
Ping @cjihrig: It appears that this has been updated to address your comment. Can you please take a look and, as appropriate update your review? |
In this change, I've added the regex pattern to the assert.throws() in order to provide the validation argument for the call. PR-URL: nodejs#9918 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Landed in 4e1b2e7. |
In this change, I've added the regex pattern to the assert.throws() in order to provide the validation argument for the call. PR-URL: #9918 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
In this change, I've added the regex pattern to the assert.throws() in order to provide the validation argument for the call. PR-URL: #9918 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
In this change, I've added the regex pattern to the assert.throws() in order to provide the validation argument for the call. PR-URL: #9918 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
In this change, I've added the regex pattern to the assert.throws() in order to provide the validation argument for the call. PR-URL: #9918 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
test
Description of change
In this change, I've added the regex pattern to the assert.throws()
in order to provide the validation argument for the call.