Skip to content

Added unit tests for utils.compileETag to cover valid and invalid inputs #6534

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

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

Conversation

sukdev24
Copy link

This contribution adds unit tests for the utils.compileETag() function in test/utils.js.

The tests verify behavior for:

  • true, false, "strong", "weak" input values
  • Invalid input types (array, object)
  • Unrecognized strings

These tests improve coverage and support new contributors reviewing ETag logic.

Copy link
Member

@UlisesGascon UlisesGascon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sukdev24 thanks for helping the project! Can you run npm run lint -- --fix to solve the linting issues and commit the changes?

@sukdev24
Copy link
Author

sukdev24 commented May 27, 2025 via email

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.

2 participants