mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
yay
This commit is contained in:
14
test/js/node/test/parallel/test-module-children.js
Normal file
14
test/js/node/test/parallel/test-module-children.js
Normal file
@@ -0,0 +1,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);
|
||||
Reference in New Issue
Block a user