Skip to content

Commit d66cd3c

Browse files
committed
fix invalid urlpattern test validating hostname
1 parent b2eb421 commit d66cd3c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

urlpattern/resources/urlpatterntestdata.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,11 +2370,17 @@
23702370
},
23712371
{
23722372
"pattern": [{ "hostname": "bad#hostname" }],
2373-
"expected_obj": "error"
2373+
"exactly_empty_components": ["port"],
2374+
"expected_match": {
2375+
"hostname": { "input": "bad", "groups": {} }
2376+
}
23742377
},
23752378
{
23762379
"pattern": [{ "hostname": "bad%hostname" }],
2377-
"expected_obj": "error"
2380+
"exactly_empty_components": ["port"],
2381+
"expected_match": {
2382+
"hostname": { "input": "bad%hostname", "groups": {} }
2383+
}
23782384
},
23792385
{
23802386
"pattern": [{ "hostname": "bad/hostname" }],

0 commit comments

Comments
 (0)