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

#2: case sensitive params #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

spiffytech
Copy link
Member

This change fixes #2: captured URL params no longer get transformed to lowercase.

I've also added the repo's first tests. I didn't want to figure out if JSDOM can handle pushstate, so I just set up Playwright to launch Chromium and make assertions in a real browser.

# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date:      Tue Dec 6 18:47:34 2022 -0500
#
# On branch 2-case-sensitive-params
# Changes to be committed:
#	new file:   .editorconfig
#	modified:   .gitignore
#	new file:   index.html
#	modified:   package-lock.json
#	modified:   package.json
#	new file:   playwright.config.ts
#	new file:   tests/main.tsx
#	new file:   tests/router.spec.ts
#	modified:   tsconfig.json
#
# Changes not staged for commit:
#	modified:   tests/router.spec.ts
#
@spiffytech spiffytech requested a review from jeswin December 6, 2022 23:52
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.

Router lowercases matched parameters
1 participant