mirror of https://github.com/nodejs/node.git
15 lines
358 B
JavaScript
15 lines
358 B
JavaScript
// Flags: --experimental-require-module
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
{
|
|
const mod = require('../fixtures/es-modules/loose.js');
|
|
common.expectRequiredModule(mod, { default: 'module' });
|
|
}
|
|
|
|
{
|
|
const mod = require('../fixtures/es-modules/package-without-type/noext-esm');
|
|
common.expectRequiredModule(mod, { default: 'module' });
|
|
}
|