avancement planning
This commit is contained in:
+9
@@ -76,3 +76,12 @@ test('URN Resolving', (t) => {
|
||||
t.equal(fastURI.resolve('urn:some:other:prop', 'urn:some:ip:prop'), 'urn:some:ip:prop', 'urn:some:ip:prop')
|
||||
t.end()
|
||||
})
|
||||
|
||||
test('URI Resolving tolerates malformed fragments', (t) => {
|
||||
t.equal(
|
||||
fastURI.resolve('http://base.com/', 'http://example.com/#%E0%A4A'),
|
||||
'http://example.com/#%E0%A4A',
|
||||
'malformed fragment does not throw during resolve'
|
||||
)
|
||||
t.end()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user