aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-url-parse-format.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-03-16 22:47:05 -0700
committerRich Trott <rtrott@gmail.com>2017-03-20 18:28:40 -0700
commitcce520a5deb0afc55a2c4e13dba6999a379ded8d (patch)
treee8ed22c6fb73ea95f5e8173a3a501b7ebd056ea9 /test/parallel/test-url-parse-format.js
parent74c1e0264296d9dbd9bff9dae63ba9c81cae45d4 (diff)
downloadandroid-node-v8-cce520a5deb0afc55a2c4e13dba6999a379ded8d.tar.gz
android-node-v8-cce520a5deb0afc55a2c4e13dba6999a379ded8d.tar.bz2
android-node-v8-cce520a5deb0afc55a2c4e13dba6999a379ded8d.zip
tools: ignore URLs in line length linting
Where inclusion of a lengthy URL causes a line to exceed 80 characters in our code base, do not report the line length as a linting error. PR-URL: https://github.com/nodejs/node/pull/11890 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'test/parallel/test-url-parse-format.js')
-rw-r--r--test/parallel/test-url-parse-format.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/parallel/test-url-parse-format.js b/test/parallel/test-url-parse-format.js
index f75f979b29..7da6a7167b 100644
--- a/test/parallel/test-url-parse-format.js
+++ b/test/parallel/test-url-parse-format.js
@@ -1,4 +1,3 @@
-/* eslint-disable max-len */
'use strict';
require('../common');
const assert = require('assert');
@@ -272,8 +271,7 @@ const parseTests = {
},
'http://user:pass@mt0.google.com/vt/lyrs=m@114???&hl=en&src=api&x=2&y=2&z=3&s=': {
- href: 'http://user:pass@mt0.google.com/vt/lyrs=m@114???' +
- '&hl=en&src=api&x=2&y=2&z=3&s=',
+ href: 'http://user:pass@mt0.google.com/vt/lyrs=m@114???&hl=en&src=api&x=2&y=2&z=3&s=',
protocol: 'http:',
slashes: true,
host: 'mt0.google.com',
@@ -842,7 +840,7 @@ const parseTests = {
hostname: 'a.b',
hash: null,
pathname: '/%09bc%0Adr%0Def%20g%22hq%27j%3Ckl%3E',
- path: '/%09bc%0Adr%0Def%20g%22hq%27j%3Ckl%3E?mn%5Cop%5Eq=r%6099%7Bst%7Cuv%7Dwz',
+ path: '/%09bc%0Adr%0Def%20g%22hq%27j%3Ckl%3E?mn%5Cop%5Eq=r%6099%7Bst%7Cuv%7Dwz', // eslint-disable-line max-len
search: '?mn%5Cop%5Eq=r%6099%7Bst%7Cuv%7Dwz',
query: 'mn%5Cop%5Eq=r%6099%7Bst%7Cuv%7Dwz',
href: 'http://a.b/%09bc%0Adr%0Def%20g%22hq%27j%3Ckl%3E?mn%5Cop%5Eq=r%6099%7Bst%7Cuv%7Dwz'