Skip to content

Commit ccecaca

Browse files
mckalexeeMylesBorins
authored andcommitted
test: replaced fixturesDir with fixtures module
This was an assigned task at Node.js Interactive North America 2017. This replaced the fixturesDir exported by the common module with the fixturesDir on the common/fixtures module in the path-makelong test. PR-URL: #15908 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 547c284 commit ccecaca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-path-makelong.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
const fixtures = require('../common/fixtures');
2425
const assert = require('assert');
2526
const path = require('path');
2627

2728
if (common.isWindows) {
28-
const file = path.join(common.fixturesDir, 'a.js');
29+
const file = fixtures.path('a.js');
2930
const resolvedFile = path.resolve(file);
3031

3132
assert.strictEqual(`\\\\?\\${resolvedFile}`, path._makeLong(file));

0 commit comments

Comments
 (0)