From 78545039d65fa24841454f161c3711ce4b5226bc Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Sat, 28 Jan 2017 17:34:14 +0800 Subject: [PATCH] test: remove unnecessary eslint-disable max-len PR-URL: https://github.com/nodejs/node/pull/11049 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- test/parallel/test-url-format-invalid-input.js | 1 - test/parallel/test-url-relative.js | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/test/parallel/test-url-format-invalid-input.js b/test/parallel/test-url-format-invalid-input.js index 6361e56f401c99..5a39cc1381d16f 100644 --- a/test/parallel/test-url-format-invalid-input.js +++ b/test/parallel/test-url-format-invalid-input.js @@ -1,4 +1,3 @@ -/* eslint-disable max-len */ 'use strict'; require('../common'); const assert = require('assert'); diff --git a/test/parallel/test-url-relative.js b/test/parallel/test-url-relative.js index 0d9384a704509e..aff0eb76f8878a 100644 --- a/test/parallel/test-url-relative.js +++ b/test/parallel/test-url-relative.js @@ -1,4 +1,3 @@ -/* eslint-disable max-len */ 'use strict'; require('../common'); const assert = require('assert'); @@ -58,8 +57,8 @@ relativeTests.forEach(function(relativeTest) { const a = url.resolve(relativeTest[0], relativeTest[1]); const e = relativeTest[2]; assert.strictEqual(a, e, - 'resolve(' + [relativeTest[0], relativeTest[1]] + ') == ' + e + - '\n actual=' + a); + `resolve(${relativeTest[0]}, ${relativeTest[1]})` + + ` == ${e}\n actual=${a}`); }); // @@ -374,8 +373,8 @@ relativeTests2.forEach(function(relativeTest) { const a = url.resolve(relativeTest[1], relativeTest[0]); const e = url.format(relativeTest[2]); assert.strictEqual(a, e, - 'resolve(' + [relativeTest[1], relativeTest[0]] + ') == ' + e + - '\n actual=' + a); + `resolve(${relativeTest[0]}, ${relativeTest[1]})` + + ` == ${e}\n actual=${a}`); }); //if format and parse are inverse operations then @@ -393,7 +392,8 @@ relativeTests.forEach(function(relativeTest) { actual = url.format(actual); assert.strictEqual(actual, expected, - 'format(' + actual + ') == ' + expected + '\nactual:' + actual); + `format(${actual}) == ${expected}\n` + + `actual: ${actual}`); }); //format: [to, from, result] @@ -424,6 +424,6 @@ relativeTests2.forEach(function(relativeTest) { actual = url.format(actual); assert.strictEqual(actual, expected, - 'format(' + relativeTest[1] + ') == ' + expected + - '\nactual:' + actual); + `format(${relativeTest[1]}) == ${expected}\n` + + `actual: ${actual}`); });