Skip to content

Commit

Permalink
test: remove unnecessary eslint-disable max-len
Browse files Browse the repository at this point in the history
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 30, 2017
1 parent 147d2a6 commit 7854503
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion test/parallel/test-url-format-invalid-input.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
'use strict';
require('../common');
const assert = require('assert');
Expand Down
16 changes: 8 additions & 8 deletions test/parallel/test-url-relative.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
'use strict';
require('../common');
const assert = require('assert');
Expand Down Expand Up @@ -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}`);
});

//
Expand Down Expand Up @@ -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
Expand All @@ -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]
Expand Down Expand Up @@ -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.