| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review requested:
|
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
Awesome, thanks!
The new test-cases seem a bit verbose; could they be DRY'd up with a loop (for (const valid of […]) and possibly for (const invalid of […]))?
Sorry, something went wrong.
| if (status === 'success' || body === null || | ||
| (typeof body !== 'object' && | ||
| typeof body !== 'function' && | ||
| typeof body !== 'symbol')) { |
There was a problem hiding this comment.
Nit
| if (status === 'success' || body === null || | |
| (typeof body !== 'object' && | |
| typeof body !== 'function' && | |
| typeof body !== 'symbol')) { | |
| if (status === 'success' || body === null || | |
| (typeof body !== 'object' && | |
| typeof body !== 'function' && | |
| typeof body !== 'symbol') | |
| ) { |
Sorry, something went wrong.
There are on the same structure than almost every other test cases in that file, that seems fine to me. IMO test code should be WET code, not DRY. |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
|
This is blocked by another PR that needs to be backported to v18.x because it references missing code. |
Sorry, something went wrong.
|
For reference, backporting this is blocked until #44710 is backported. |
Sorry, something went wrong.
PR-URL: nodejs#48247 Refs: nodejs#48240 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jacob Smith <jacob@frende.me>
PR-URL: nodejs#48247 Refs: nodejs#48240 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jacob Smith <jacob@frende.me>
PR-URL: nodejs#48247 Refs: nodejs#48240 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jacob Smith <jacob@frende.me>
PR-URL: nodejs/node#48247 Backport-PR-URL: nodejs/node#50669 Refs: nodejs/node#48240 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jacob Smith <jacob@frende.me>
PR-URL: nodejs/node#48247 Backport-PR-URL: nodejs/node#50669 Refs: nodejs/node#48240 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jacob Smith <jacob@frende.me>
| Back | FazBrowse Home | New Git URL |
Refs: #48240