From 0c61e3989e242e8fd61c612df23e0d63cc2dc6f2 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 df2db48813..00fedbde1b 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; }