• 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, expectsError({
7  code: 'ERR_INVALID_URL',
8  message: 'Invalid URL: ../fixtures/es-modules/test-esm-ok.mjs'
9}))
10.then(mustCall());
11