From fbc6fcb01831638412cb0d95014806b22c67fa76 Mon Sep 17 00:00:00 2001 From: Christos Koutsiaris Date: Fri, 27 Sep 2024 11:05:33 +0100 Subject: [PATCH] test: remove duplicated test descriptions PR-URL: https://github.com/nodejs/node/pull/54140 Reviewed-By: Michael Dawson Reviewed-By: Luigi Pinca Reviewed-By: Matteo Collina Reviewed-By: Jake Yuesong Li Reviewed-By: Marco Ippolito Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel --- test/es-module/test-typescript-eval.mjs | 2 +- test/es-module/test-typescript.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/es-module/test-typescript-eval.mjs b/test/es-module/test-typescript-eval.mjs index 120b66a1d26017..be467721577826 100644 --- a/test/es-module/test-typescript-eval.mjs +++ b/test/es-module/test-typescript-eval.mjs @@ -98,7 +98,7 @@ test('expect fail eval TypeScript CommonJS syntax with input-type module', async strictEqual(result.code, 1); }); -test('expect fail eval TypeScript CommonJS syntax with input-type module', async () => { +test('expect fail eval TypeScript ESM syntax with input-type commonjs', async () => { const result = await spawnPromisified(process.execPath, [ '--experimental-strip-types', '--input-type=commonjs', diff --git a/test/es-module/test-typescript.mjs b/test/es-module/test-typescript.mjs index 9732a51c4122d7..fcb5a5eff93d54 100644 --- a/test/es-module/test-typescript.mjs +++ b/test/es-module/test-typescript.mjs @@ -287,7 +287,7 @@ test('execute a TypeScript file with CommonJS syntax requiring .mts', async () = strictEqual(result.code, 0); }); -test('execute a TypeScript file with CommonJS syntax requiring .mts with require-module', async () => { +test('execute a TypeScript file with CommonJS syntax requiring .mts using require-module', async () => { const result = await spawnPromisified(process.execPath, [ '--experimental-strip-types', '--experimental-require-module', @@ -299,7 +299,7 @@ test('execute a TypeScript file with CommonJS syntax requiring .mts with require strictEqual(result.code, 0); }); -test('execute a TypeScript file with CommonJS syntax requiring .mts with require-module', async () => { +test('execute a TypeScript file with CommonJS syntax requiring .cts using commonjs', async () => { const result = await spawnPromisified(process.execPath, [ '--experimental-strip-types', '--no-warnings',