Skip to content

Commit

Permalink
test: replace string concatenation with templates
Browse files Browse the repository at this point in the history
PR-URL: #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 MylesBorins committed Oct 11, 2017
1 parent a625d82 commit 547c284
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 547c284

Please sign in to comment.