From 51d87e338ec8afb8439e5113b9d7c52c7e8629c5 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 8c7443c21f82ee..4e718a78ddcbdd 100644 --- a/test/parallel/test-npm-install.js +++ b/test/parallel/test-npm-install.js @@ -5,6 +5,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'); @@ -24,7 +25,7 @@ const npmPath = path.join( const pkgContent = JSON.stringify({ dependencies: { - 'package-name': `${common.fixturesDir}/packages/main` + 'package-name': fixtures.path('packages/main') } });