Skip to content

Commit a04703b

Browse files
committed
test: @putout/engine-loader: esm: v20
1 parent 7f69fdd commit a04703b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/engine-loader/test/load-plugins.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ test('putout: loader: sync: load ESM: code', (t) => {
452452
plugins: ['@putout/plugin-apply-nullish-coalescing'],
453453
});
454454

455-
if (process.version.startsWith('v23') || process.version.startsWith('v22'))
455+
if (process.version.startsWith('v2'))
456456
return t.notOk(error);
457457

458458
t.equal(error.code, 'ERR_REQUIRE_ESM');
@@ -465,7 +465,7 @@ test('putout: loader: sync: load ESM: message', (t) => {
465465
plugins: ['@putout/plugin-apply-nullish-coalescing'],
466466
});
467467

468-
if (process.version.startsWith('v23') || process.version.startsWith('v22'))
468+
if (process.version.startsWith('v2'))
469469
return t.notOk(error);
470470

471471
t.equal(error.message, `☝️ Looks like '@putout/plugin-apply-nullish-coalescing' is ESM, use 'await putoutAsync()' instead`);
@@ -478,7 +478,7 @@ test('putout: loader: sync: load ESM: name', (t) => {
478478
plugins: ['apply-nullish-coalescing'],
479479
});
480480

481-
if (process.version.startsWith('v23') || process.version.startsWith('v22'))
481+
if (process.version.startsWith('v2'))
482482
return t.notOk(error);
483483

484484
t.equal(error.name, 'apply-nullish-coalescing');

0 commit comments

Comments
 (0)