Skip to content

Commit f82f691

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 e68ef29 commit f82f691

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
@@ -1,10 +1,11 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
34
const assert = require('assert');
45
const path = require('path');
56

67
if (common.isWindows) {
7-
const file = path.join(common.fixturesDir, 'a.js');
8+
const file = fixtures.path('a.js');
89
const resolvedFile = path.resolve(file);
910

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

0 commit comments

Comments
 (0)