diff options
author | abouthiroppy <git@about-hiroppy.com> | 2017-01-09 07:14:16 +0900 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-01-10 09:10:36 -0800 |
commit | c61d9bade0a90c9ad1a7c53637d1bdd80d6fbe63 (patch) | |
tree | 63717943685de595b3676920051c6b14671e8bad /test/doctool/test-doctool-json.js | |
parent | 85a90340e1997ab3be61720abbb2df247cf1c597 (diff) | |
download | android-node-v8-c61d9bade0a90c9ad1a7c53637d1bdd80d6fbe63.tar.gz android-node-v8-c61d9bade0a90c9ad1a7c53637d1bdd80d6fbe63.tar.bz2 android-node-v8-c61d9bade0a90c9ad1a7c53637d1bdd80d6fbe63.zip |
test: refactor test-doctool-html.js
PR-URL: https://github.com/nodejs/node/pull/10696
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'test/doctool/test-doctool-json.js')
-rw-r--r-- | test/doctool/test-doctool-json.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/doctool/test-doctool-json.js b/test/doctool/test-doctool-json.js index 520c79bef8..ae7b2007b7 100644 --- a/test/doctool/test-doctool-json.js +++ b/test/doctool/test-doctool-json.js @@ -18,7 +18,7 @@ const json = require('../../tools/doc/json.js'); // Test data is a list of objects with two properties. // The file property is the file path. // The json property is some json which will be generated by the doctool. -var testData = [ +const testData = [ { file: path.join(common.fixturesDir, 'sample_document.md'), json: { @@ -136,10 +136,10 @@ var testData = [ } ]; -testData.forEach(function(item) { - fs.readFile(item.file, 'utf8', common.mustCall(function(err, input) { +testData.forEach((item) => { + fs.readFile(item.file, 'utf8', common.mustCall((err, input) => { assert.ifError(err); - json(input, 'foo', common.mustCall(function(err, output) { + json(input, 'foo', common.mustCall((err, output) => { assert.ifError(err); assert.deepStrictEqual(output, item.json); })); |