mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
f4a5abac56
commit
737c9cfff0
1 file changed
+2
-2
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user