From ece6cd1f9ede8a345aae3797e7b9f472d1920549 Mon Sep 17 00:00:00 2001 From: BinarySo1o Date: Fri, 6 Oct 2017 10:29:35 -0700 Subject: [PATCH] test: replace fixturesDir with fixtures module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/15961 Reviewed-By: Daijiro Wachi Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig --- test/parallel/test-npm-install.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-npm-install.js b/test/parallel/test-npm-install.js index 186b2e2b16099c..34f48d50ccdb2b 100644 --- a/test/parallel/test-npm-install.js +++ b/test/parallel/test-npm-install.js @@ -7,6 +7,7 @@ const path = require('path'); const exec = require('child_process').exec; const assert = require('assert'); const fs = require('fs'); +const fixtures = require('../common/fixtures'); common.refreshTmpDir(); const npmSandbox = path.join(common.tmpDir, 'npm-sandbox'); @@ -26,7 +27,7 @@ const npmPath = path.join( const pkgContent = JSON.stringify({ dependencies: { - 'package-name': `${common.fixturesDir}/packages/main` + 'package-name': fixtures.path('packages/main') } });