From 547c284335868537a05a916a7f14892e16fa361b Mon Sep 17 00:00:00 2001 From: Colin Leong Date: Fri, 6 Oct 2017 10:12:13 -0700 Subject: [PATCH] test: replace string concatenation with templates PR-URL: https://github.com/nodejs/node/pull/15903 Reviewed-By: Gibson Fahnestock Reviewed-By: Joyee Cheung Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Refael Ackermann --- test/parallel/test-whatwg-url-parsing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-whatwg-url-parsing.js b/test/parallel/test-whatwg-url-parsing.js index df2db4881374fd..00fedbde1b0c62 100644 --- a/test/parallel/test-whatwg-url-parsing.js +++ b/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; }