summaryrefslogtreecommitdiff
path: root/doc/guides/writing-tests.md
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-06-27 13:32:32 -0700
committerRich Trott <rtrott@gmail.com>2017-06-29 15:43:56 -0700
commit8969c1b76209e83f3fc3cb00a41421f7996e399b (patch)
tree60c7c29f8b49427d56218ca960b263b6f48130fa /doc/guides/writing-tests.md
parent47d1e125ac71d065fdea9ba166bc31478a523f47 (diff)
downloadandroid-node-v8-8969c1b76209e83f3fc3cb00a41421f7996e399b.tar.gz
android-node-v8-8969c1b76209e83f3fc3cb00a41421f7996e399b.tar.bz2
android-node-v8-8969c1b76209e83f3fc3cb00a41421f7996e399b.zip
doc: fix indentation issues in sample code
In preparation for stricter ESLint indentation checking, fix a few issues in sample code. PR-URL: https://github.com/nodejs/node/pull/13950 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/guides/writing-tests.md')
-rw-r--r--doc/guides/writing-tests.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/guides/writing-tests.md b/doc/guides/writing-tests.md
index 688e13a323..9d226da6e8 100644
--- a/doc/guides/writing-tests.md
+++ b/doc/guides/writing-tests.md
@@ -25,13 +25,13 @@ Let's analyze this basic test from the Node.js test suite:
```javascript
'use strict'; // 1
const common = require('../common'); // 2
- // 3
+
// This test ensures that the http-parser can handle UTF-8 characters // 4
// in the http header. // 5
- // 6
+
const assert = require('assert'); // 7
const http = require('http'); // 8
- // 9
+
const server = http.createServer(common.mustCall((req, res) => { // 10
res.end('ok'); // 11
})); // 12