Skip to content
This repository was archived by the owner on Jun 27, 2022. It is now read-only.

Commit fba0ea3

Browse files
committed
Adds escaped parentheses test
1 parent 39738ad commit fba0ea3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

test/url.test.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,30 @@ runner('URL', [
9393
},
9494
],
9595
},
96+
{
97+
given: `/resource\\('id'\\)`,
98+
when: [
99+
{
100+
actual: `/resource('id')`,
101+
it: {
102+
matches: true,
103+
params: null,
104+
},
105+
},
106+
{
107+
actual: `/resource('foo')`,
108+
it: {
109+
matches: false,
110+
params: null,
111+
},
112+
},
113+
{
114+
actual: '/resource',
115+
it: {
116+
matches: false,
117+
params: null,
118+
},
119+
},
120+
],
121+
},
96122
])

0 commit comments

Comments
 (0)