Browse Source

test: remove unused common.libDir

PR-URL: https://github.com/nodejs/node/pull/9124
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
v6
Rich Trott 8 years ago
committed by James M Snell
parent
commit
3f05b67984
  1. 5
      test/README.md
  2. 11
      test/common.js

5
test/README.md

@ -271,11 +271,6 @@ Platform check for Windows 32-bit on Windows 64-bit.
Checks whether any globals are not on the `knownGlobals` list. Checks whether any globals are not on the `knownGlobals` list.
### libDir
* return [&lt;String>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type)
Path to the 'lib' directory.
### localhostIPv4 ### localhostIPv4
* return [&lt;String>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) * return [&lt;String>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type)

11
test/common.js

@ -1,10 +1,10 @@
/* eslint-disable required-modules */ /* eslint-disable required-modules */
'use strict'; 'use strict';
var path = require('path'); const path = require('path');
var fs = require('fs'); const fs = require('fs');
var assert = require('assert'); const assert = require('assert');
var os = require('os'); const os = require('os');
var child_process = require('child_process'); const child_process = require('child_process');
const stream = require('stream'); const stream = require('stream');
const util = require('util'); const util = require('util');
const Timer = process.binding('timer_wrap').Timer; const Timer = process.binding('timer_wrap').Timer;
@ -14,7 +14,6 @@ const testRoot = process.env.NODE_TEST_DIR ?
exports.testDir = __dirname; exports.testDir = __dirname;
exports.fixturesDir = path.join(exports.testDir, 'fixtures'); exports.fixturesDir = path.join(exports.testDir, 'fixtures');
exports.libDir = path.join(exports.testDir, '../lib');
exports.tmpDirName = 'tmp'; exports.tmpDirName = 'tmp';
// PORT should match the definition in test/testpy/__init__.py. // PORT should match the definition in test/testpy/__init__.py.
exports.PORT = +process.env.NODE_COMMON_PORT || 12346; exports.PORT = +process.env.NODE_COMMON_PORT || 12346;

Loading…
Cancel
Save