Skip to content

Commit

Permalink
Update test/parallel/test-url-pathtofileurl.js
Browse files Browse the repository at this point in the history
Co-authored-by: Livia Medeiros <[email protected]>
  • Loading branch information
aduh95 and LiviaMedeiros authored Oct 26, 2024
1 parent 2753b70 commit 0958612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-url-pathtofileurl.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const posixTestCases = [
{ path: '/foo\r\n\t<>"#%{}|^[\\~]`?bar', expected: 'file:///foo%0D%0A%09%3C%3E%22%23%25%7B%7D%7C%5E%5B%5C%7E%5D%60%3Fbar' },
// All of the 16-bit UTF-16 chars
{
path: `/${String.fromCharCode(...Array.from({ length: 0x7FFF }, (_, i) => i))}`,
path: `/${Array.from({ length: 0x7FFF }, (_, i) => String.fromCharCode(i)).join('')}`,
expected: `file:///${
Array.from({ length: 0x21 }, (_, i) => `%${i.toString(16).toUpperCase().padStart(2, '0')}`).join('')
}!%22%23$%25&'()*+,-./0123456789:;%3C=%3E%3F@${
Expand Down

0 comments on commit 0958612

Please sign in to comment.