Skip to content

Commit aba7b47

Browse files
ovhemertcodebytere
authored andcommitted
test: url format path ending hashchar not covered
PR-URL: #24259 Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 9970d56 commit aba7b47

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/parallel/test-url-format.js

+10
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ const formatTests = {
173173
hash: '#bar'
174174
},
175175

176+
// `#` in path end + `#` in query
177+
'/path/to/%%23?foo=the%231#bar': {
178+
href: '/path/to/%%23?foo=the%231#bar',
179+
pathname: '/path/to/%#',
180+
query: {
181+
foo: 'the#1'
182+
},
183+
hash: '#bar'
184+
},
185+
176186
// `?` and `#` in path and search
177187
'http://ex.com/foo%3F100%m%23r?abc=the%231?&foo=bar#frag': {
178188
href: 'http://ex.com/foo%3F100%m%23r?abc=the%231?&foo=bar#frag',

0 commit comments

Comments
 (0)