-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: increase test coverage for lib/zlib.js #9366
Conversation
Add tests for constructor behavior and parameter validation. Remove condition check that cannot be triggered (nothing is greater than `Infinity`).
/^Error: Invalid chunk size: -Infinity$/ | ||
); | ||
|
||
// Confrim that maximum chunk size cannot be exceeded because it is `Infinity`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: Confrim
); | ||
|
||
// 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be strictEqual()
instead?
LGTM with a couple nits. |
Nits addressed. Thanks. CI again: https://ci.nodejs.org/job/node-test-pull-request/4742/ |
LGTM |
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 <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: James M Snell <[email protected]>
Lnaded in 3eea668 |
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 <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: James M Snell <[email protected]>
This does not land cleanly in LTS. Added dont-land label. Please feel free to manually backport |
Updated label to |
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected 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
).