test: replace fixturesDir with fixtures module

PR-URL: https://github.com/nodejs/node/pull/15840
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Thomas Karsten authored and Myles Borins committed 2017-10-23 17:17:28 -04:00
1 parent f4a5abac56
commit 737c9cfff0
1 file changed
+2 -2
+2 -2
View File
@@ -24,9 +24,9 @@
/* eslint-disable strict */
const common = require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const path = require('path');
common.globalCheck = false;
@@ -40,7 +40,7 @@ assert.strictEqual(baseBar, // eslint-disable-line no-undef
'bar',
'global.x -> x in base level not working');
const mod = require(path.join(common.fixturesDir, 'global', 'plain'));
const mod = require(fixtures.path('global', 'plain'));
const fooBar = mod.fooBar;
assert.strictEqual(fooBar.foo, 'foo', 'x -> global.x in sub level not working');