Skip to content
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: improved test robustness #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Alex-GF
Copy link

@Alex-GF Alex-GF commented May 6, 2024

This Pull Request addresses an issue regarding the testing of the handling and generation of Access-Control-Allow-Headers header. Through the application of mutation testing, I have identified a potential mutation in the configuration logic that was not covered by the existing tests (issue fully explain in this threat).

Proposed Change

To mitigate this, I suggest changing the assertion method from assert.equal to assert.strictEqual in the test/test.js file, specifically at line 444. This alteration would ensure that the tests verify not only the value but also the exact type of the header content, thereby preventing potential type coercion issues.

Additional Information

This Pull Request has been created following the directions of @UlisesGascon.

Looking forward to your feedback and approval.

Thank you for considering this enhancement.

Best regards.

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.

None yet

1 participant