Skip to content

Commit 3665296

Browse files
ovhemertBridgeAR
authored andcommittedNov 13, 2018
test: url format path ending hashchar not covered
PR-URL: #24259 Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 0a104ef commit 3665296

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)