Conversation
|
This is awesome. CI: https://ci.nodejs.org/job/node-test-pull-request/776/ |
There was a problem hiding this comment.
For consistency, please use const here.
There was a problem hiding this comment.
Sure no prob. I saw there was a lint error in CI so I'll fix that and this.
Should I const everything in this file that can be? Or just the requires?
There was a problem hiding this comment.
at least the requires for sure. make sure it passes lint. the rest I'd consider optional
There was a problem hiding this comment.
@bengl You can actually check everything locally simply by running make -j4 test, here 4 denotes the number of tasks to be done parallelly.
|
One minor nit but LGTM if CI is green |
77a3e52 to
2ceb942
Compare
|
Cool. |
There was a problem hiding this comment.
The second parameter will be thrown as an error, if the first param is not truthy. So the text should be negative I believe.
There was a problem hiding this comment.
Ah, sure. Will change those messages to be negative.
|
Awesome... doing another CI run just to be safe: https://ci.nodejs.org/job/node-test-pull-request/788/ |
It also tests displayPrompt by checking for '> '.
2ceb942 to
db28b50
Compare
|
Changed error messages to be negative. |
|
LGTM |
|
@jasnell looks like CI failed because I force-pushed a new version of it too early. Perhaps kick it off again? |
|
heh. Ok... new run: https://ci.nodejs.org/job/node-test-pull-request/790/ |
|
Looks like some unrelated failures in Windows and FreeBSD. |
|
Thanks! Landed in e5d97fd |
It also tests displayPrompt by checking for '> '. PR-URL: #3908 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
It also tests displayPrompt by checking for '> '. PR-URL: #3908 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
It also tests displayPrompt by checking for '> '. PR-URL: #3908 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
It also tests displayPrompt by checking for '> '. PR-URL: #3908 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
It also tests displayPrompt by checking for '> '. PR-URL: #3908 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
It also tests displayPrompt by checking for '> '. PR-URL: nodejs#3908 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
There didn't appear to be a test for
REPLServer#defineCommand, probably because it wasn't documented before, so here's a test for it.