Skip to content

Comments

Improve test coverage for res.set() edge cases#7050

Open
RlxChap2 wants to merge 1 commit intoexpressjs:masterfrom
RlxChap2:master
Open

Improve test coverage for res.set() edge cases#7050
RlxChap2 wants to merge 1 commit intoexpressjs:masterfrom
RlxChap2:master

Conversation

@RlxChap2
Copy link

Summary

Add edge case tests for res.set() to ensure headers behave correctly with uncommon inputs.

Motivation

Some header scenarios were not explicitly tested, such as empty values, case-insensitive field names, and overwriting existing headers. These tests document and validate the current behavior.

Changes

  • Test empty string header values
  • Test case-insensitive header names
  • Test overwriting existing header values

Testing

  • All tests pass with npm test

Notes

No functional changes; tests only.

@RlxChap2 RlxChap2 changed the title Improve test coverage for res.set() edge cases Improve test coverage for res.set() edge cases Feb 21, 2026
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