summaryrefslogtreecommitdiff
path: root/test
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
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')
-rw-r--r--test/common/README.md5
-rw-r--r--test/common/index.js1
-rw-r--r--test/doctool/test-make-doc.js2
3 files changed, 1 insertions, 7 deletions
diff --git a/test/common/README.md b/test/common/README.md
index b87976f124..39b368ae20 100644
--- a/test/common/README.md
+++ b/test/common/README.md
@@ -340,11 +340,6 @@ original state after calling [`common.hijackStdOut()`][].
Path to the 'root' directory. either `/` or `c:\\` (windows)
-### projectDir
-* [&lt;String>]
-
-Path to the project directory.
-
### skip(msg)
* `msg` [&lt;String>]
diff --git a/test/common/index.js b/test/common/index.js
index 57a09cf69f..b67b2f7b71 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -69,7 +69,6 @@ exports.enoughTestCpu = Array.isArray(cpus) &&
(cpus.length > 1 || cpus[0].speed > 999);
exports.rootDir = exports.isWindows ? 'c:\\' : '/';
-exports.projectDir = path.resolve(__dirname, '..', '..');
exports.buildType = process.config.target_defaults.default_configuration;
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'));