diff --git a/test/parallel/test-internal-modules.js b/test/parallel/test-internal-modules.js index 2f11ca18dd6b34..c61d957acd0542 100644 --- a/test/parallel/test-internal-modules.js +++ b/test/parallel/test-internal-modules.js @@ -1,6 +1,6 @@ 'use strict'; -const common = require('../common'); -const path = require('path'); +require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); assert.throws(function() { @@ -8,6 +8,6 @@ assert.throws(function() { }, /^Error: Cannot find module 'internal\/freelist'$/); assert.strictEqual( - require(path.join(common.fixturesDir, 'internal-modules')), + require(fixtures.path('internal-modules')), 42 );