Skip to content

Commit 254c80d

Browse files
vsemozhetbytBridgeAR
authored andcommitted
doc: re-alphabetise sections in common/README.md
PR-URL: #17971 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent ec6ef6b commit 254c80d

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

test/common/README.md

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ This directory contains modules used to test the Node.js implementation.
1010
* [DNS module](#dns-module)
1111
* [Duplex pair helper](#duplex-pair-helper)
1212
* [Fixtures module](#fixtures-module)
13+
* [HTTP2 module](#http2-module)
1314
* [Internet module](#internet-module)
1415
* [WPT module](#wpt-module)
15-
* [HTTP2 module](#http2-module)
1616

1717
## Benchmark Module
1818

@@ -509,49 +509,6 @@ Returns the result of
509509
Returns the result of
510510
`fs.readFileSync(path.join(fixtures.fixturesDir, 'keys', arg), 'enc')`.
511511

512-
## Internet Module
513-
514-
The `common/internet` module provides utilities for working with
515-
internet-related tests.
516-
517-
### internet.addresses
518-
519-
* [&lt;Object>]
520-
* `INET_HOST` [&lt;String>] A generic host that has registered common
521-
DNS records, supports both IPv4 and IPv6, and provides basic HTTP/HTTPS
522-
services
523-
* `INET4_HOST` [&lt;String>] A host that provides IPv4 services
524-
* `INET6_HOST` [&lt;String>] A host that provides IPv6 services
525-
* `INET4_IP` [&lt;String>] An accessible IPv4 IP, defaults to the
526-
Google Public DNS IPv4 address
527-
* `INET6_IP` [&lt;String>] An accessible IPv6 IP, defaults to the
528-
Google Public DNS IPv6 address
529-
* `INVALID_HOST` [&lt;String>] An invalid host that cannot be resolved
530-
* `MX_HOST` [&lt;String>] A host with MX records registered
531-
* `SRV_HOST` [&lt;String>] A host with SRV records registered
532-
* `PTR_HOST` [&lt;String>] A host with PTR records registered
533-
* `NAPTR_HOST` [&lt;String>] A host with NAPTR records registered
534-
* `SOA_HOST` [&lt;String>] A host with SOA records registered
535-
* `CNAME_HOST` [&lt;String>] A host with CNAME records registered
536-
* `NS_HOST` [&lt;String>] A host with NS records registered
537-
* `TXT_HOST` [&lt;String>] A host with TXT records registered
538-
* `DNS4_SERVER` [&lt;String>] An accessible IPv4 DNS server
539-
* `DNS6_SERVER` [&lt;String>] An accessible IPv6 DNS server
540-
541-
A set of addresses for internet-related tests. All properties are configurable
542-
via `NODE_TEST_*` environment variables. For example, to configure
543-
`internet.addresses.INET_HOST`, set the environment
544-
vairable `NODE_TEST_INET_HOST` to a specified host.
545-
546-
## WPT Module
547-
548-
The wpt.js module is a port of parts of
549-
[W3C testharness.js](https://github.com/w3c/testharness.js) for testing the
550-
Node.js
551-
[WHATWG URL API](https://nodejs.org/api/url.html#url_the_whatwg_url_api)
552-
implementation with tests from
553-
[W3C Web Platform Tests](https://github.com/w3c/web-platform-tests).
554-
555512
## HTTP/2 Module
556513

557514
The http2.js module provides a handful of utilities for creating mock HTTP/2
@@ -663,6 +620,49 @@ upon initial establishment of a connection.
663620
socket.write(http2.kClientMagic);
664621
```
665622

623+
## Internet Module
624+
625+
The `common/internet` module provides utilities for working with
626+
internet-related tests.
627+
628+
### internet.addresses
629+
630+
* [&lt;Object>]
631+
* `INET_HOST` [&lt;String>] A generic host that has registered common
632+
DNS records, supports both IPv4 and IPv6, and provides basic HTTP/HTTPS
633+
services
634+
* `INET4_HOST` [&lt;String>] A host that provides IPv4 services
635+
* `INET6_HOST` [&lt;String>] A host that provides IPv6 services
636+
* `INET4_IP` [&lt;String>] An accessible IPv4 IP, defaults to the
637+
Google Public DNS IPv4 address
638+
* `INET6_IP` [&lt;String>] An accessible IPv6 IP, defaults to the
639+
Google Public DNS IPv6 address
640+
* `INVALID_HOST` [&lt;String>] An invalid host that cannot be resolved
641+
* `MX_HOST` [&lt;String>] A host with MX records registered
642+
* `SRV_HOST` [&lt;String>] A host with SRV records registered
643+
* `PTR_HOST` [&lt;String>] A host with PTR records registered
644+
* `NAPTR_HOST` [&lt;String>] A host with NAPTR records registered
645+
* `SOA_HOST` [&lt;String>] A host with SOA records registered
646+
* `CNAME_HOST` [&lt;String>] A host with CNAME records registered
647+
* `NS_HOST` [&lt;String>] A host with NS records registered
648+
* `TXT_HOST` [&lt;String>] A host with TXT records registered
649+
* `DNS4_SERVER` [&lt;String>] An accessible IPv4 DNS server
650+
* `DNS6_SERVER` [&lt;String>] An accessible IPv6 DNS server
651+
652+
A set of addresses for internet-related tests. All properties are configurable
653+
via `NODE_TEST_*` environment variables. For example, to configure
654+
`internet.addresses.INET_HOST`, set the environment
655+
vairable `NODE_TEST_INET_HOST` to a specified host.
656+
657+
## WPT Module
658+
659+
The wpt.js module is a port of parts of
660+
[W3C testharness.js](https://github.com/w3c/testharness.js) for testing the
661+
Node.js
662+
[WHATWG URL API](https://nodejs.org/api/url.html#url_the_whatwg_url_api)
663+
implementation with tests from
664+
[W3C Web Platform Tests](https://github.com/w3c/web-platform-tests).
665+
666666

667667
[&lt;Array>]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
668668
[&lt;ArrayBufferView&#91;&#93;>]: https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView

0 commit comments

Comments
 (0)