summaryrefslogtreecommitdiff
path: root/test/doctool
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-12-19 21:51:45 -0800
committerRich Trott <rtrott@gmail.com>2017-12-21 10:11:32 -0800
commitfc8e8215f659043bd91c398a516a727e3d662f1b (patch)
treec7945a57a7309012a9c73489c96a8feb5ead6d6b /test/doctool
parenta4f44acd6962e470006c75774f4f0b22325a9bbb (diff)
downloadandroid-node-v8-fc8e8215f659043bd91c398a516a727e3d662f1b.tar.gz
android-node-v8-fc8e8215f659043bd91c398a516a727e3d662f1b.tar.bz2
android-node-v8-fc8e8215f659043bd91c398a516a727e3d662f1b.zip
test: remove common.projectDir
common.projectDir is used in one test, so it's not so common. Remove from common module to the one test file that needs it. PR-URL: https://github.com/nodejs/node/pull/17781 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/doctool')
-rw-r--r--test/doctool/test-make-doc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/doctool/test-make-doc.js b/test/doctool/test-make-doc.js
index ad372d7121..74845b2444 100644
--- a/test/doctool/test-make-doc.js
+++ b/test/doctool/test-make-doc.js
@@ -11,7 +11,7 @@ const assert = require('assert');
const fs = require('fs');
const path = require('path');
-const apiPath = path.resolve(common.projectDir, 'out', 'doc', 'api');
+const apiPath = path.resolve(__dirname, '..', '..', 'out', 'doc', 'api');
const docs = fs.readdirSync(apiPath);
assert.ok(docs.includes('_toc.html'));