Skip to content

test: add test cases for null, string, and NaN status codes in res.sendStatus - #7423

Open
aoright wants to merge 1 commit into
expressjs:masterfrom
aoright:test/res-send-status-invalid-codes
Open

test: add test cases for null, string, and NaN status codes in res.sendStatus#7423
aoright wants to merge 1 commit into
expressjs:masterfrom
aoright:test/res-send-status-invalid-codes

Conversation

@aoright

@aoright aoright commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • In test/res.sendStatus.js, add test cases verifying that passing invalid status codes (null, strings, and NaN) to res.sendStatus() correctly raises a TypeError.

…ndStatus

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant