• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Flags: --experimental-loader ./test/fixtures/es-module-loaders/loader-invalid-url.mjs
2import { expectsError, mustCall } from '../common/index.mjs';
3import assert from 'assert';
4
5import('../fixtures/es-modules/test-esm-ok.mjs')
6.then(assert.fail, (error) => {
7  expectsError({ code: 'ERR_INVALID_RETURN_PROPERTY_VALUE' })(error);
8  assert.match(error.message, /loader-invalid-url\.mjs/);
9})
10.then(mustCall());
11