Skip to content

Commit

Permalink
test: replace string concatenation with templates
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#15903
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
cleong-tc authored and addaleax committed Oct 11, 2017
1 parent 23e7bc2 commit 0c61e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-whatwg-url-parsing.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ for (const test of failureTests) {
return false;

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

0 comments on commit 0c61e39

Please sign in to comment.