| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Won't this technically be + 2 on Windows?
Sorry, something went wrong.
There was a problem hiding this comment.
Probably. Good point. Maybe the thing to do is compare stdout.trim().length in the assertion so as to avoid any assumptions whatsoever about the line separator?
Sorry, something went wrong.
There was a problem hiding this comment.
Yeah, and we may want to compare the (trimmed) output instead of comparing the lengths just to be extra sure we get what we expect.
Sorry, something went wrong.
There was a problem hiding this comment.
OK, done. PTAL
Sorry, something went wrong.
| } | ||
|
|
||
| const stdout = execSync(`${process.execPath} ${__filename} child`) | ||
| .toString() |
There was a problem hiding this comment.
nit: maybe these would look a little less oddly placed if they were lined up with the first e in execSync()?
Sorry, something went wrong.
There was a problem hiding this comment.
Maybe just do this?
const argv = `${process.execPath} ${__filename} child`
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks! Nit addressed.
Sorry, something went wrong.
|
One nit but otherwise LGTM. |
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: nodejs#5920 Refs: nodejs#2148 Reviewed-By: Brian White <mscdex@mscdex.net>
| Back | FazBrowse Home | New Git URL |
Pull Request check-list
this change (including linting)?
test (or a benchmark) included?
existing APIs, or introduces new ones)?
Affected core subsystem(s)
test, process
Description of change
test: add known_issues test for GH-2148
Refs: #2148