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:
parent
ef96b05c74
commit
8597a18cdb
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user