You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/guides/writing-tests.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -229,7 +229,7 @@ argument. It is not a good idea to simply pass `common.mustCall()` to those
229
229
because `common.mustCall()` will ignore the error. Use `common.mustSucceed()`
230
230
instead.
231
231
232
-
#### Countdown Module
232
+
#### Countdown module
233
233
234
234
The common [Countdown module](https://github.com/nodejs/node/tree/HEAD/test/common#countdown-module)
235
235
provides a simple countdown mechanism for tests that require a particular
@@ -345,7 +345,7 @@ in each release, such as:
345
345
* Template literals over string concatenation
346
346
* Arrow functions when appropriate
347
347
348
-
## Naming Test Files
348
+
## Naming test files
349
349
350
350
Test files are named using kebab casing. The first component of the name is
351
351
`test`. The second is the module or subsystem being tested. The third is usually
@@ -357,13 +357,13 @@ named `test-process-before-exit.js`. If the test specifically checked that arrow
357
357
functions worked correctly with the `beforeExit` event, then it might be named
358
358
`test-process-before-exit-arrow-functions.js`.
359
359
360
-
## Imported Tests
360
+
## Imported tests
361
361
362
-
### Web Platform Tests
362
+
### Web platform tests
363
363
364
364
See [`test/wpt`](../../test/wpt/README.md) for more information.
365
365
366
-
## C++ Unit test
366
+
## C++ unit test
367
367
368
368
C++ code can be tested using [Google Test][]. Most features in Node.js can be
369
369
tested using the methods described previously in this document. But there are
@@ -444,7 +444,7 @@ and tearing it down after the tests have finished.
444
444
It also contains a helper to create arguments to be passed into Node.js. It
445
445
will depend on what is being tested if this is required or not.
0 commit comments