Skip to content
Permalink
Browse files

test: remove unnecessary eslint-disable max-len

PR-URL: #11049
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information...
joyeecheung authored and jasnell committed Jan 28, 2017
1 parent 147d2a6 commit 78545039d65fa24841454f161c3711ce4b5226bc
Showing with 8 additions and 9 deletions.
  1. +0 −1 test/parallel/test-url-format-invalid-input.js
  2. +8 −8 test/parallel/test-url-relative.js
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
'use strict';
require('../common');
const assert = require('assert');
@@ -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}`);
});

0 comments on commit 7854503

Please sign in to comment.
You can’t perform that action at this time.