Skip to content

Commit f05a2d8

Browse files
jphblaisBridgeAR
authored andcommitted
test: replace concatenation with literals
PR-URL: #15924 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent c35a3e0 commit f05a2d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/parallel/test-whatwg-url-searchparams-sort.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ const { test, assert_equals, assert_array_equals } = require('../common/wpt');
4040
assert_array_equals(param, val.output[i])
4141
i++
4242
}
43-
}, "Parse and sort: " + val.input)
43+
}, `Parse and sort: ${val.input}`)
4444

4545
test(() => {
46-
let url = new URL("?" + val.input, "https://example/")
46+
let url = new URL(`?${val.input}`, "https://example/")
4747
url.searchParams.sort()
4848
let params = new URLSearchParams(url.search),
4949
i = 0
5050
for(let param of params) {
5151
assert_array_equals(param, val.output[i])
5252
i++
5353
}
54-
}, "URL parse and sort: " + val.input)
54+
}, `URL parse and sort: ${val.input}`)
5555
})
5656

5757
test(function() {
@@ -90,7 +90,7 @@ tests.forEach((val) => {
9090
assert_array_equals(param, val.output[i]);
9191
i++;
9292
}
93-
}, 'Parse and sort: ' + val.input);
93+
}, `Parse and sort: ${val.input}`);
9494

9595
test(() => {
9696
const url = new URL(`?${val.input}`, 'https://example/');
@@ -101,5 +101,5 @@ tests.forEach((val) => {
101101
assert_array_equals(param, val.output[i]);
102102
i++;
103103
}
104-
}, 'URL parse and sort: ' + val.input);
104+
}, `URL parse and sort: ${val.input}`);
105105
});

0 commit comments

Comments
 (0)