Browse Source

test: replace string concatenation with templates

PR-URL: https://github.com/nodejs/node/pull/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>
v9.x-staging
Colin Leong 7 years ago
committed by Ruben Bridgewater
parent
commit
d00bb87cc7
No known key found for this signature in database GPG Key ID: F07496B3EB3C1762
  1. 2
      test/parallel/test-whatwg-url-parsing.js

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

@ -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;
}

Loading…
Cancel
Save