diff --git a/test/parallel/test-module-require-depth.js b/test/parallel/test-module-require-depth.js index 12a963e9b6c6be..151934917cd678 100644 --- a/test/parallel/test-module-require-depth.js +++ b/test/parallel/test-module-require-depth.js @@ -1,13 +1,14 @@ // Flags: --expose_internals 'use strict'; -const common = require('../common'); +require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const internalModule = require('internal/module'); // Module one loads two too so the expected depth for two is, well, two. assert.strictEqual(internalModule.requireDepth, 0); -const one = require(`${common.fixturesDir}/module-require-depth/one`); -const two = require(`${common.fixturesDir}/module-require-depth/two`); +const one = require(fixtures.path('module-require-depth', 'one')); +const two = require(fixtures.path('module-require-depth', 'two')); assert.deepStrictEqual(one, { requireDepth: 1 }); assert.deepStrictEqual(two, { requireDepth: 2 }); assert.strictEqual(internalModule.requireDepth, 0);