Skip to content

Commit

Permalink
Adjust integration tests for Node.js 12.17 supporting ESM out of the box
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Jun 13, 2020
1 parent a901672 commit f5e1f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test-tap/integration/assorted.js
Expand Up @@ -166,7 +166,7 @@ test('selects .cjs test files', t => {

test('load .mjs test files (when node supports it)', t => {
execCli('mjs.mjs', (err, stdout) => {
if (Number.parseFloat(process.version.slice(1)) >= 13) {
if (Number.parseFloat(process.version.slice(1)) >= 12.17) {
t.ifError(err);
t.match(stdout, /1 test passed/);
t.end();
Expand All @@ -180,7 +180,7 @@ test('load .mjs test files (when node supports it)', t => {

test('load .js test files as ESM modules (when node supports it)', t => {
execCli('test.js', {dirname: 'fixture/pkg-type-module'}, (err, stdout) => {
if (Number.parseFloat(process.version.slice(1)) >= 13) {
if (Number.parseFloat(process.version.slice(1)) >= 12.17) {
t.ifError(err);
t.match(stdout, /1 test passed/);
t.end();
Expand Down

0 comments on commit f5e1f94

Please sign in to comment.