diff --git a/test/parallel/test-require-resolve.js b/test/parallel/test-require-resolve.js index b39b4c93a02017..27fb3f71f795ce 100644 --- a/test/parallel/test-require-resolve.js +++ b/test/parallel/test-require-resolve.js @@ -20,20 +20,19 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; -const common = require('../common'); -const fixturesDir = common.fixturesDir; +require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); -const path = require('path'); assert.strictEqual( - path.join(__dirname, '../fixtures/a.js').toLowerCase(), - require.resolve('../fixtures/a').toLowerCase()); + fixtures.path('a.js').toLowerCase(), + require.resolve(fixtures.path('a').toLowerCase())); assert.strictEqual( - path.join(fixturesDir, 'a.js').toLowerCase(), - require.resolve(path.join(fixturesDir, 'a')).toLowerCase()); + fixtures.path('a.js').toLowerCase(), + require.resolve(fixtures.path('a')).toLowerCase()); assert.strictEqual( - path.join(fixturesDir, 'nested-index', 'one', 'index.js').toLowerCase(), - require.resolve('../fixtures/nested-index/one').toLowerCase()); + fixtures.path('nested-index', 'one', 'index.js').toLowerCase(), + require.resolve(fixtures.path('nested-index', 'one').toLowerCase())); assert.strictEqual('path', require.resolve('path')); console.log('ok');