summaryrefslogtreecommitdiff
path: root/test/parallel/test-module-children.js
blob: 9eec14fda6ed9e527f2470a09eb2348842166309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Flags: --no-deprecation
'use strict';
const common = require('../common');
const assert = require('assert');
const path = require('path');

const dir = path.join(common.fixturesDir, 'GH-7131');
const b = require(path.join(dir, 'b'));
const a = require(path.join(dir, 'a'));

assert.strictEqual(a.length, 1);
assert.strictEqual(b.length, 0);
assert.deepStrictEqual(a[0].exports, b);