| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add tests for constructor behavior and parameter validation. Remove condition check that cannot be triggered (nothing is greater than `Infinity`).
Sorry, something went wrong.
| /^Error: Invalid chunk size: -Infinity$/ | ||
| ); | ||
|
|
||
| // Confrim that maximum chunk size cannot be exceeded because it is `Infinity`. |
There was a problem hiding this comment.
typo: Confrim
Sorry, something went wrong.
| ); | ||
|
|
||
| // Confrim that maximum chunk size cannot be exceeded because it is `Infinity`. | ||
| assert.deepEqual(zlib.constants.Z_MAX_CHUNK, Infinity); |
There was a problem hiding this comment.
Should this be strictEqual() instead?
Sorry, something went wrong.
|
LGTM with a couple nits. |
Sorry, something went wrong.
|
Nits addressed. Thanks. CI again: https://ci.nodejs.org/job/node-test-pull-request/4742/ |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
Add tests for constructor behavior and parameter validation. Remove condition check that cannot be triggered (nothing is greater than `Infinity`). PR-URL: nodejs#9366 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add tests for constructor behavior and parameter validation. Remove condition check that cannot be triggered (nothing is greater than `Infinity`). PR-URL: #9366 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
This does not land cleanly in LTS. Added dont-land label. Please feel free to manually backport |
Sorry, something went wrong.
|
Updated label to dont-land-on-v6.x because depends on zlib.constants not in v6.x. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
test zlib
Description of change
Add tests for constructor behavior and parameter validation. Remove condition check that cannot be triggered (nothing is greater than Infinity).