mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
ca12ae6015
PR-URL: https://github.com/nodejs/node/pull/16095 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
15 lines
402 B
JavaScript
15 lines
402 B
JavaScript
// 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);
|