Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test/parallel/test-url-pathtofileurl.js
Co-authored-by: Livia Medeiros <livia@cirno.name>
  • Loading branch information
aduh95 and LiviaMedeiros authored Oct 26, 2024
commit 0958612c51661c22f742d9c67a9a162a271bb31c
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