@@ -92,7 +92,7 @@ The test checks functionality in the `http` module.
92
92
Most tests use the ` assert ` module to confirm expectations of the test.
93
93
94
94
The require statements are sorted in
95
- [ ASCII] ( http://man7.org/linux/man-pages/man7/ascii.7.html ) order (digits, upper
95
+ [ ASCII] [ ] order (digits, upper
96
96
case, ` _ ` , lower case).
97
97
98
98
### ** Lines 10-21**
@@ -231,9 +231,9 @@ assert.throws(
231
231
For performance considerations, we only use a selected subset of ES.Next
232
232
features in JavaScript code in the ` lib ` directory. However, when writing
233
233
tests, for the ease of backporting, it is encouraged to use those ES.Next
234
- features that can be used directly without a flag in [ all maintained branches ]
235
- ( https://github.com/nodejs/lts ). [ node.green] ( http://node.green/ ) lists
236
- available features in each release.
234
+ features that can be used directly without a flag in
235
+ [ all maintained branches ] [ ] . [ node.green] [ ] lists available features
236
+ in each release.
237
237
238
238
For example:
239
239
@@ -258,8 +258,7 @@ functions worked correctly with the `beforeExit` event, then it might be named
258
258
### Web Platform Tests
259
259
260
260
Some of the tests for the WHATWG URL implementation (named
261
- ` test-whatwg-url-*.js ` ) are imported from the
262
- [ Web Platform Tests Project] ( https://github.com/w3c/web-platform-tests/tree/master/url ) .
261
+ ` test-whatwg-url-*.js ` ) are imported from the [ Web Platform Tests Project] [ ] .
263
262
These imported tests will be wrapped like this:
264
263
265
264
``` js
@@ -332,13 +331,17 @@ $ make cctest
332
331
```
333
332
334
333
### Node test fixture
335
- There is a [ test fixture] named ` node_test_fixture.h ` which can be included by
334
+ There is a [ test fixture] [ ] named ` node_test_fixture.h ` which can be included by
336
335
unit tests. The fixture takes care of setting up the Node.js environment
337
336
and tearing it down after the tests have finished.
338
337
339
338
It also contains a helper to create arguments to be passed into Node.js. It
340
339
will depend on what is being tested if this is required or not.
341
340
341
+ [ ASCII ] : http://man7.org/linux/man-pages/man7/ascii.7.html
342
342
[ Google Test ] : https://github.com/google/googletest
343
- [ Test fixture ] : https://github.com/google/googletest/blob /master/googletest/docs/Primer.md#test-fixtures-using-the-same-data-configuration-for-multiple-tests
343
+ [ Web Platform Tests Project ] : https://github.com/w3c/web-platform-tests/tree /master/url
344
344
[ `common` module ] : https://github.com/nodejs/node/blob/master/test/common/README.md
345
+ [ all maintained branches ] : https://github.com/nodejs/lts
346
+ [ node.green ] : http://node.green/
347
+ [ test fixture ] : https://github.com/google/googletest/blob/master/googletest/docs/Primer.md#test-fixtures-using-the-same-data-configuration-for-multiple-tests
0 commit comments