From f5e1f941adfb4ce9e7fa42f57aea9f09684a3ea7 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Sat, 13 Jun 2020 16:16:12 +0200 Subject: [PATCH] Adjust integration tests for Node.js 12.17 supporting ESM out of the box --- test-tap/integration/assorted.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-tap/integration/assorted.js b/test-tap/integration/assorted.js index 762cd02f4..53dd2630a 100644 --- a/test-tap/integration/assorted.js +++ b/test-tap/integration/assorted.js @@ -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(); @@ -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();