| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM if CI is green. If you want to take it a step further, you can replace the template literals with path.join() calls. (For example: path.join(common.fixturesDir, 'test_cert.pem'))
Sorry, something went wrong.
|
Thanks @Trott . |
Sorry, something went wrong.
There was a problem hiding this comment.
Should not the '/test_cert.pem' and '/test_key.pem' be the 'test_cert.pem' and 'test_key.pem'? Path delimiters shoud be inserted by path.join().
Sorry, something went wrong.
There was a problem hiding this comment.
I agree (even though this will work as far as I know).
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, it is better remove the delimiters. Will update it.
Thanks.
Sorry, something went wrong.
…of template literals
|
Updated accordingly. |
Sorry, something went wrong.
Sorry, something went wrong.
| if (!common.hasCrypto) | ||
| common.skip('missing crypto'); | ||
|
|
||
| const path = require('path'); |
There was a problem hiding this comment.
This is a nit pick, but can you move path below assert? In tests, we try to (but admittedly often don't) keep the built-in modules in alphabetical order. (Well, ASCII order actually. https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#lines-7-8)
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with or without my additional nit-pick addressed. (Nit-pick can be addressed while landing if it doesn't get addressed in this PR.)
Sorry, something went wrong.
|
@Trott Thanks. |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
If this extra empty line is unwanted, anybody who will land the PR can delete it.
Sorry, something went wrong.
Deleted. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Landed in d8eb30a, thank you for your first contribution! 🎉 |
Sorry, something went wrong.
PR-URL: #14319 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: #14319 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
|
Thanks. |
Sorry, something went wrong.
PR-URL: #14319 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
| Back | FazBrowse Home | New Git URL |
[JSConf CN Code&Learn] Replace string concatenation in async-hooks/test-tlswrap.js with template literals
Checklist
Affected core subsystem(s)
no.
Just update tests.