From 5f9eac5c2f0ea4b6ffb5d4c80c6e65efaeb234ea Mon Sep 17 00:00:00 2001 From: rachelnicole Date: Fri, 6 Oct 2017 13:33:58 -0700 Subject: [PATCH 1/2] replaced fixturesDir with common.fixtures module --- test/parallel/test-internal-modules.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-internal-modules.js b/test/parallel/test-internal-modules.js index 2f11ca18dd6b34..05fbcda38c4ee9 100644 --- a/test/parallel/test-internal-modules.js +++ b/test/parallel/test-internal-modules.js @@ -1,5 +1,6 @@ 'use strict'; -const common = require('../common'); +require('../common'); +const fixtures = require('../common/fixtures'); const path = require('path'); const assert = require('assert'); @@ -8,6 +9,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 ); From bb96d65f76f7461cf60f922bda2e6833922f2a56 Mon Sep 17 00:00:00 2001 From: rachelnicole Date: Fri, 6 Oct 2017 14:46:29 -0700 Subject: [PATCH 2/2] removed unused variable --- test/parallel/test-internal-modules.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/parallel/test-internal-modules.js b/test/parallel/test-internal-modules.js index 05fbcda38c4ee9..c61d957acd0542 100644 --- a/test/parallel/test-internal-modules.js +++ b/test/parallel/test-internal-modules.js @@ -1,7 +1,6 @@ 'use strict'; require('../common'); const fixtures = require('../common/fixtures'); -const path = require('path'); const assert = require('assert'); assert.throws(function() {