Skip to content

Add test for cookie name case not being respected.#880

Open
caarmen wants to merge 1 commit intoforwardemail:masterfrom
caarmen:test-for-cookie-case
Open

Add test for cookie name case not being respected.#880
caarmen wants to merge 1 commit intoforwardemail:masterfrom
caarmen:test-for-cookie-case

Conversation

@caarmen
Copy link

@caarmen caarmen commented Feb 2, 2026

Checklist

This PR adds a test to reproduce the issue reported here:

This PR suggests a test to verify that a cookie assertion will respect the case of the cookie name.

The test:

  • Has a server which sets a cookie Alpha=one
  • Expects: .expect(cookies.set({ name: 'Alpha', options: ['domain', 'path', 'httponly'] }))
  • Fails

Note that the test passes if you put alpha in lower case in the expect.

  • I have ensured my pull request is not behind the main or master branch of the original repository.
  • I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
  • I have written a commit message that passes commitlint linting.
  • I have ensured that my code changes pass linting tests.
  • I have ensured that my code changes pass unit tests.
    • Nope, the point is to demonstrate a failing test :)
  • I have described my pull request and the reasons for code changes along with context if necessary.

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