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 Ruben Bridgewater committed 2017-10-08 15:46:14 -07:00
1 parent ba6049f7f9
commit 8baa325185
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();