| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| const theDataview = test_dataview.CreateDataView(template); | ||
| assert.ok(theDataview instanceof DataView, | ||
| 'The new variable should be of type Dataview'); | ||
| assert.ok(theDataview instanceof DataView); |
There was a problem hiding this comment.
I think it would be best to include the actual instanceof value in the error message here instead of just removing the message.
Sorry, something went wrong.
There was a problem hiding this comment.
The value of theDataView instanceof DataView will reliably be true or false and thus false if this fails. What might be useful is displaying the value of theDataView so it can be obvious why that failed. If theDataView is undefined rather than some kind of complex object, that's useful info.
Sorry, something went wrong.
Sorry, something went wrong.
| const theDataview = test_dataview.CreateDataView(template); | ||
| assert.ok(theDataview instanceof DataView, | ||
| 'The new variable should be of type Dataview'); | ||
| assert.ok(theDataview instanceof DataView); |
There was a problem hiding this comment.
Sorry, something went wrong.
|
My apologies, I'll wrap this up over the weekend. |
Sorry, something went wrong.
| const theDataview = test_dataview.CreateDataView(template); | ||
| assert.ok(theDataview instanceof DataView, | ||
| 'The new variable should be of type Dataview'); | ||
| assert.ok(`Expect ${theDataview} to be a DataView`); |
There was a problem hiding this comment.
This is no longer correct as it is always truthy. Can you please add back the first argument? theDataview instanceof DataView.
Sorry, something went wrong.
There was a problem hiding this comment.
Yep, sorry. Shouldn't do things while asleep.
Sorry, something went wrong.
There was a problem hiding this comment.
No problem. Now I think the line is too long and our linter isn't happy with it. Can you please move the second argument to the next as it was originally?
Thanks!
Sorry, something went wrong.
Sorry, something went wrong.
|
ESLint is reporting that the changed line exceeds 80 characters. Can you split it into two lines like it was before (but leave your change, of course)? Run make lint-js (or vcbuild lint-js if on Windows) to see if there are any lint errors. |
Sorry, something went wrong.
There was a problem hiding this comment.
Lint error needs fixing.
Sorry, something went wrong.
Sorry, something went wrong.
|
PTAL, all approvals reviewed the first commit. |
Sorry, something went wrong.
PR-URL: #15935 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
|
Landed in 201ecef, thank you for your contribution! 🎉 |
Sorry, something went wrong.
PR-URL: #15935 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: #15935 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: #15935 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: nodejs/node#15935 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: nodejs/node#15935 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: nodejs/node#15935 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: nodejs#15935 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
| Back | FazBrowse Home | New Git URL |
Working on our first commit in Node. The task was to review assert.ok and determine if the string literal made sense or not. After reviewing other tests in nearby directories, we determined that removing the message would better match the repository.
Checklist
Affected core subsystem(s)
dataview