Skip to content

Commit b4b04ce

Browse files
unseen1980aduh95
authored andcommitted
test: remove duplicated test descriptions
1 parent 6fb9f56 commit b4b04ce

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

lib/internal/modules/cjs/loader.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,11 @@ function getMaybeCachedSource(mod, filename) {
15821582
return content;
15831583
}
15841584

1585+
/**
1586+
* Built-in handler for `.cts` files.
1587+
* @param {Module} module The module to compile
1588+
* @param {string} filename The file path of the module
1589+
*/
15851590
function loadCTS(module, filename) {
15861591
if (isUnderNodeModules(filename)) {
15871592
throw new ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING(filename);

test/es-module/test-typescript-eval.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ test('expect fail eval TypeScript CommonJS syntax with input-type module', async
9898
strictEqual(result.code, 1);
9999
});
100100

101-
test('expect fail eval TypeScript CommonJS syntax with input-type module', async () => {
101+
test('expect fail eval TypeScript ESM syntax with input-type commonjs', async () => {
102102
const result = await spawnPromisified(process.execPath, [
103103
'--experimental-strip-types',
104104
'--input-type=commonjs',

test/es-module/test-typescript.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ test('execute a TypeScript file with CommonJS syntax requiring .mts', async () =
288288
strictEqual(result.code, 1);
289289
});
290290

291-
test('execute a TypeScript file with CommonJS syntax requiring .mts with require-module', async () => {
291+
test('execute a TypeScript file with CommonJS syntax requiring .mts using require-module', async () => {
292292
const result = await spawnPromisified(process.execPath, [
293293
'--experimental-strip-types',
294294
'--experimental-require-module',
@@ -300,7 +300,7 @@ test('execute a TypeScript file with CommonJS syntax requiring .mts with require
300300
strictEqual(result.code, 0);
301301
});
302302

303-
test('execute a TypeScript file with CommonJS syntax requiring .mts with require-module', async () => {
303+
test('execute a TypeScript file with CommonJS syntax requiring .cts using commonjs', async () => {
304304
const result = await spawnPromisified(process.execPath, [
305305
'--experimental-strip-types',
306306
'--no-warnings',

0 commit comments

Comments
 (0)