Skip to content

Commit b593d94

Browse files
vsemozhetbytMylesBorins
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 3bcdb3b commit b593d94

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

test/common/README.md

+44-44
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

@@ -523,49 +523,6 @@ Returns the result of
523523
Returns the result of
524524
`fs.readFileSync(path.join(fixtures.fixturesDir, 'keys', arg), 'enc')`.
525525

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

571528
The http2.js module provides a handful of utilities for creating mock HTTP/2
@@ -701,6 +658,49 @@ upon initial establishment of a connection.
701658
socket.write(http2.kClientMagic);
702659
```
703660

661+
## Internet Module
662+
663+
The `common/internet` module provides utilities for working with
664+
internet-related tests.
665+
666+
### internet.addresses
667+
668+
* [&lt;Object>]
669+
* `INET_HOST` [&lt;String>] A generic host that has registered common
670+
DNS records, supports both IPv4 and IPv6, and provides basic HTTP/HTTPS
671+
services
672+
* `INET4_HOST` [&lt;String>] A host that provides IPv4 services
673+
* `INET6_HOST` [&lt;String>] A host that provides IPv6 services
674+
* `INET4_IP` [&lt;String>] An accessible IPv4 IP, defaults to the
675+
Google Public DNS IPv4 address
676+
* `INET6_IP` [&lt;String>] An accessible IPv6 IP, defaults to the
677+
Google Public DNS IPv6 address
678+
* `INVALID_HOST` [&lt;String>] An invalid host that cannot be resolved
679+
* `MX_HOST` [&lt;String>] A host with MX records registered
680+
* `SRV_HOST` [&lt;String>] A host with SRV records registered
681+
* `PTR_HOST` [&lt;String>] A host with PTR records registered
682+
* `NAPTR_HOST` [&lt;String>] A host with NAPTR records registered
683+
* `SOA_HOST` [&lt;String>] A host with SOA records registered
684+
* `CNAME_HOST` [&lt;String>] A host with CNAME records registered
685+
* `NS_HOST` [&lt;String>] A host with NS records registered
686+
* `TXT_HOST` [&lt;String>] A host with TXT records registered
687+
* `DNS4_SERVER` [&lt;String>] An accessible IPv4 DNS server
688+
* `DNS6_SERVER` [&lt;String>] An accessible IPv6 DNS server
689+
690+
A set of addresses for internet-related tests. All properties are configurable
691+
via `NODE_TEST_*` environment variables. For example, to configure
692+
`internet.addresses.INET_HOST`, set the environment
693+
vairable `NODE_TEST_INET_HOST` to a specified host.
694+
695+
## WPT Module
696+
697+
The wpt.js module is a port of parts of
698+
[W3C testharness.js](https://github.com/w3c/testharness.js) for testing the
699+
Node.js
700+
[WHATWG URL API](https://nodejs.org/api/url.html#url_the_whatwg_url_api)
701+
implementation with tests from
702+
[W3C Web Platform Tests](https://github.com/w3c/web-platform-tests).
703+
704704

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

0 commit comments

Comments
 (0)