Skip to content

Commit

Permalink
Fix mjs test
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham committed Dec 10, 2019
1 parent fe74e6f commit afe50b9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/parallel/test-require-mjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@
require('../common');
const assert = require('assert');

assert.throws(
() => require('../fixtures/es-modules/test-esm-ok.mjs'),
{
message: /Must use import to load ES Module/,
code: 'ERR_REQUIRE_ESM'
}
);
assert.equal(require('../fixtures/es-modules/test-esm-ok.mjs').default, true);

0 comments on commit afe50b9

Please sign in to comment.