Skip to content

Commit

Permalink
test: replaced fixturesDir with fixtures module
Browse files Browse the repository at this point in the history
PR-URL: #15927
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
mckalexee authored and MylesBorins committed Oct 11, 2017
1 parent 84dd578 commit 0286da0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-path-resolve.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 0286da0

Please sign in to comment.