test: replaced fixturesDir with fixtures module

PR-URL: https://github.com/nodejs/node/pull/15927
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Alex McKenzie authored and Myles Borins committed 2017-10-11 02:06:00 -04:00
1 parent 84dd5783c6
commit 0286da0992
1 file changed
+2 -1
+2 -1
View File
@@ -1,5 +1,6 @@
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const child = require('child_process');
const path = require('path');
@@ -62,7 +63,7 @@ if (common.isWindows) {
// Test resolving the current Windows drive letter from a spawned process.
// See https://github.com/nodejs/node/issues/7215
const currentDriveLetter = path.parse(process.cwd()).root.substring(0, 2);
const resolveFixture = path.join(common.fixturesDir, 'path-resolve.js');
const resolveFixture = fixtures.path('path-resolve.js');
const spawnResult = child.spawnSync(
process.argv[0], [resolveFixture, currentDriveLetter]);
const resolvedPath = spawnResult.stdout.toString().trim();