From 5c4f18014ed332ca8b118d17dd18cd8e457b4e97 Mon Sep 17 00:00:00 2001 From: kevinuehara Date: Mon, 23 Sep 2024 11:51:31 -0300 Subject: [PATCH] fix: Resolving Lint error --- test/es-module/test-typescript.mjs | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/test/es-module/test-typescript.mjs b/test/es-module/test-typescript.mjs index c735f989aa32f7..e6865001a320ff 100644 --- a/test/es-module/test-typescript.mjs +++ b/test/es-module/test-typescript.mjs @@ -327,33 +327,32 @@ test('execute a JavaScript file importing a cjs TypeScript file', async () => { test('execute a TypeScript file with union types', async () => { const result = await spawnPromisified(process.execPath, [ - '--experimental-strip-types', - '--no-warnings', - fixtures.path('typescript/ts/test-union-types.ts'), + '--experimental-strip-types', + '--no-warnings', + fixtures.path('typescript/ts/test-union-types.ts'), ]); - strictEqual(result.stderr, ''); strictEqual(result.stdout, - '{' + - " name: 'Hello, TypeScript!' }\n" + - '{ role: \'admin\', permission: \'all\' }\n' + - '{\n foo: \'Testing Partial Type\',\n bar: 42,\n' + - ' zoo: true,\n metadata: undefined\n' + - '}\n'); + '{' + + " name: 'Hello, TypeScript!' }\n" + + '{ role: \'admin\', permission: \'all\' }\n' + + '{\n foo: \'Testing Partial Type\',\n bar: 42,\n' + + ' zoo: true,\n metadata: undefined\n' + + '}\n'); strictEqual(result.code, 0); }); test('expect error when executing a TypeScript file with generics', async () => { const result = await spawnPromisified(process.execPath, [ - '--experimental-strip-types', - fixtures.path('typescript/ts/test-parameter-properties.ts'), + '--experimental-strip-types', + fixtures.path('typescript/ts/test-parameter-properties.ts'), ]); // This error should be thrown during transformation match( - result.stderr, - /TypeScript parameter property is not supported in strip-only mode/ + result.stderr, + /TypeScript parameter property is not supported in strip-only mode/ ); strictEqual(result.stdout, ''); strictEqual(result.code, 1);