diff options
Diffstat (limited to 'test/parallel/test-require-dot.js')
-rw-r--r-- | test/parallel/test-require-dot.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-require-dot.js b/test/parallel/test-require-dot.js index 26733c7fc4..04e978df56 100644 --- a/test/parallel/test-require-dot.js +++ b/test/parallel/test-require-dot.js @@ -3,13 +3,13 @@ const common = require('../common'); const assert = require('assert'); const m = require('module'); -const a = require(common.fixturesDir + '/module-require/relative/dot.js'); -const b = require(common.fixturesDir + '/module-require/relative/dot-slash.js'); +const a = require(`${common.fixturesDir}/module-require/relative/dot.js`); +const b = require(`${common.fixturesDir}/module-require/relative/dot-slash.js`); assert.strictEqual(a.value, 42); assert.strictEqual(a, b, 'require(".") should resolve like require("./")'); -process.env.NODE_PATH = common.fixturesDir + '/module-require/relative'; +process.env.NODE_PATH = `${common.fixturesDir}/module-require/relative`; m._initPaths(); const c = require('.'); |