Skip to content

Commit 3c176fd

Browse files
jwaltonMylesBorins
authored andcommitted
test: replace common.fixturesDir w/common.fixtures
PR-URL: #15853 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 77f9ef3 commit 3c176fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
+4-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// Flags: --expose_internals
22
'use strict';
3-
const common = require('../common');
3+
require('../common');
4+
const fixtures = require('../common/fixtures');
45
const assert = require('assert');
56
const internalModule = require('internal/module');
67

78
// Module one loads two too so the expected depth for two is, well, two.
89
assert.strictEqual(internalModule.requireDepth, 0);
9-
const one = require(`${common.fixturesDir}/module-require-depth/one`);
10-
const two = require(`${common.fixturesDir}/module-require-depth/two`);
10+
const one = require(fixtures.path('module-require-depth', 'one'));
11+
const two = require(fixtures.path('module-require-depth', 'two'));
1112
assert.deepStrictEqual(one, { requireDepth: 1 });
1213
assert.deepStrictEqual(two, { requireDepth: 2 });
1314
assert.strictEqual(internalModule.requireDepth, 0);

0 commit comments

Comments
 (0)