Skip to content

Commit 60c8115

Browse files
committed
test: clean up comments in test-url-format
test-url-format has the max-len rule disabled by a comment but doesn't have any lines that violate the max-len lint rule. Remove the comment. Reformat other comments for capitalization, punctuation, and updated URLs. PR-URL: #11679 Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent a2ae089 commit 60c8115

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/parallel/test-url-format.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/* eslint-disable max-len */
21
'use strict';
32
require('../common');
43
const assert = require('assert');
54
const url = require('url');
65

7-
// some extra formatting tests, just to verify
8-
// that it'll format slightly wonky content to a valid url.
6+
// Formatting tests to verify that it'll format slightly wonky content to a
7+
// valid URL.
98
const formatTests = {
109
'http://example.com?': {
1110
href: 'http://example.com/?',
@@ -133,7 +132,7 @@ const formatTests = {
133132
protocol: 'dot.test:',
134133
pathname: '/bar'
135134
},
136-
// ipv6 support
135+
// IPv6 support
137136
'coap:u:p@[::1]:61616/.well-known/r?n=Temperature': {
138137
href: 'coap:u:p@[::1]:61616/.well-known/r?n=Temperature',
139138
protocol: 'coap:',
@@ -150,9 +149,9 @@ const formatTests = {
150149
pathname: '/s/stopButton'
151150
},
152151

153-
// encode context-specific delimiters in path and query, but do not touch
152+
// Encode context-specific delimiters in path and query, but do not touch
154153
// other non-delimiter chars like `%`.
155-
// <https://github.com/joyent/node/issues/4082>
154+
// <https://github.com/nodejs/node-v0.x-archive/issues/4082>
156155

157156
// `#`,`?` in path
158157
'/path/to/%%23%3F+=&.txt?foo=theA1#bar': {

0 commit comments

Comments
 (0)