11cb0ef41Sopenharmony_ci// Flags: --experimental-loader ./test/fixtures/es-module-loaders/loader-invalid-format.mjs 21cb0ef41Sopenharmony_ciimport { expectsError, mustCall } from '../common/index.mjs'; 31cb0ef41Sopenharmony_ciimport assert from 'assert'; 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciimport('../fixtures/es-modules/test-esm-ok.mjs') 61cb0ef41Sopenharmony_ci.then(assert.fail, expectsError({ 71cb0ef41Sopenharmony_ci code: 'ERR_UNKNOWN_MODULE_FORMAT', 81cb0ef41Sopenharmony_ci message: /Unknown module format: esm/ 91cb0ef41Sopenharmony_ci})) 101cb0ef41Sopenharmony_ci.then(mustCall()); 11