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

fix: Relax Allow Header Test #562

Merged
merged 1 commit into from Mar 13, 2021

Conversation

ahilke
Copy link
Contributor

@ahilke ahilke commented Mar 13, 2021

Fixes bad test in #560. Tested with Node 10 and Node 15.

Problem: The test asserted the order of methods in the Allow header. The order is irrelevant for the header and not guaranteed by the code, so that the test failed using Node 10.

Solution: Adjust the assertion to check the returned methods irrespective of order.

Problem: The test asserted the order of methods in the Allow header. The
order is irrelevant for the header and not guaranteed by the code, so
that the test failed using Node 10.

Solution: Adjust the assertion to check the returned methods
irrespective of order.
@cdimascio cdimascio merged commit 69cdc9f into cdimascio:master Mar 13, 2021
@ahilke ahilke deleted the fix-allow-header-test branch March 13, 2021 17:26
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

2 participants