mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
PR-URL: https://github.com/nodejs/node/pull/60501 Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
12 lines
364 B
JavaScript
12 lines
364 B
JavaScript
import '../common/index.mjs';
|
|
import assert from 'assert';
|
|
|
|
import secret0 from '../fixtures/experimental.json' with { type: 'json' };
|
|
const secret1 = await import('../fixtures/experimental.json', {
|
|
with: { type: 'json' },
|
|
});
|
|
|
|
assert.strictEqual(secret0.ofLife, 42);
|
|
assert.strictEqual(secret1.default.ofLife, 42);
|
|
assert.strictEqual(secret1.default, secret0);
|