Skip to content

Commit 737c9cf

Browse files
tkarstenMylesBorins
authored andcommitted
test: replace fixturesDir with fixtures module
PR-URL: #15840 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent f4a5aba commit 737c9cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-global.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
/* eslint-disable strict */
2626
const common = require('../common');
27+
const fixtures = require('../common/fixtures');
2728

2829
const assert = require('assert');
29-
const path = require('path');
3030

3131
common.globalCheck = false;
3232

@@ -40,7 +40,7 @@ assert.strictEqual(baseBar, // eslint-disable-line no-undef
4040
'bar',
4141
'global.x -> x in base level not working');
4242

43-
const mod = require(path.join(common.fixturesDir, 'global', 'plain'));
43+
const mod = require(fixtures.path('global', 'plain'));
4444
const fooBar = mod.fooBar;
4545

4646
assert.strictEqual(fooBar.foo, 'foo', 'x -> global.x in sub level not working');

0 commit comments

Comments
 (0)