Skip to content

Commit ee7783f

Browse files
committed
Add another failing test, this time with patterns
1 parent 9eef82d commit ee7783f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/route-pattern/src/lib/route-pattern.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,13 @@ describe('RoutePattern', () => {
441441
})
442442
})
443443

444+
it('handles emojis in patterns', () => {
445+
let pattern = new RoutePattern('frameworks/💿')
446+
assert.deepEqual(pattern.match('https://example.com/frameworks/💿'), {
447+
params: {},
448+
})
449+
})
450+
444451
it('handles wildcards that look like paths', () => {
445452
let pattern = new RoutePattern('proxy/*url')
446453
assert.deepEqual(pattern.match('https://example.com/proxy/https://other.com/api')?.params, {

0 commit comments

Comments
 (0)