| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | + const fixtures = require('../common/fixtures'); | ||
| 3 | 4 | const assert = require('assert'); | |
| 4 | 5 | const child = require('child_process'); | |
| 5 | 6 | const path = require('path'); | |
@@ -62,7 +63,7 @@ if (common.isWindows) { | |||
| 62 | 63 | // Test resolving the current Windows drive letter from a spawned process. | |
| 63 | 64 | // See https://github.com/nodejs/node/issues/7215 | |
| 64 | 65 | const currentDriveLetter = path.parse(process.cwd()).root.substring(0, 2); | |
| 65 | - const resolveFixture = path.join(common.fixturesDir, 'path-resolve.js'); | ||
| 66 | + const resolveFixture = fixtures.path('path-resolve.js'); | ||
| 66 | 67 | const spawnResult = child.spawnSync( | |
| 67 | 68 | process.argv[0], [resolveFixture, currentDriveLetter]); | |
| 68 | 69 | const resolvedPath = spawnResult.stdout.toString().trim(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments