Skip to content

Commit 0c61e39

Browse files
cleong-tcaddaleax
authored andcommitted
test: replace string concatenation with templates
PR-URL: nodejs/node#15903 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent 23e7bc2 commit 0c61e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-whatwg-url-parsing.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ for (const test of failureTests) {
3636
return false;
3737

3838
// The input could be processed, so we don't do strict matching here
39-
const match = (error + '').match(/Invalid URL: (.*)$/);
39+
const match = (`${error}`).match(/Invalid URL: (.*)$/);
4040
if (!match) {
4141
return false;
4242
}

0 commit comments

Comments
 (0)