mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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: https://github.com/nodejs/node/pull/15908 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
d00bb87cc7
commit
585c1199a2
1 file changed
+2
-1
@@ -21,11 +21,12 @@
|
||||
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const fixtures = require('../common/fixtures');
|
||||
const assert = require('assert');
|
||||
const path = require('path');
|
||||
|
||||
if (common.isWindows) {
|
||||
const file = path.join(common.fixturesDir, 'a.js');
|
||||
const file = fixtures.path('a.js');
|
||||
const resolvedFile = path.resolve(file);
|
||||
|
||||
assert.strictEqual(`\\\\?\\${resolvedFile}`,
|
||||
|
||||
Reference in new issue
Block a user