Skip to content

Commit

Permalink
doc: link to common docs in test writing guide
Browse files Browse the repository at this point in the history
PR-URL: #13118
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Michael Dawson <mhdawson@ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
addaleax authored and jasnell committed May 28, 2017
1 parent 8914f7b commit 9f01b34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/guides/writing-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const common = require('../common');
The first line enables strict mode. All tests should be in strict mode unless
the nature of the test requires that the test run without it.

The second line loads the `common` module. The `common` module is a helper
The second line loads the `common` module. The [`common` module][] is a helper
module that provides useful tools for the tests.

Even if a test uses no functions or other properties exported by `common`,
Expand Down Expand Up @@ -340,3 +340,4 @@ will depend on what is being tested if this is required or not.
[Google Test]: https://github.com/google/googletest
[Test fixture]: https://github.com/google/googletest/blob/master/googletest/docs/Primer.md#test-fixtures-using-the-same-data-configuration-for-multiple-tests
[`common` module]: https://github.com/nodejs/node/blob/master/test/common/README.md

0 comments on commit 9f01b34

Please sign in to comment.