Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-module-children.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e2d3484efb2d337791661f6a2a350206ac5dfa0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Flags: --no-deprecation
'use strict';
require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const path = require('path');

const dir = fixtures.path('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);