From 94a63cfab66bbacdac34a59d8101f509e0db93c4 Mon Sep 17 00:00:00 2001 From: johanndev <10048453+johanndev@users.noreply.github.com> Date: Mon, 8 Jan 2024 08:22:41 +0100 Subject: [PATCH] Fix indentations --- library/tests/integration.test.ts | 52 +++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/library/tests/integration.test.ts b/library/tests/integration.test.ts index 0a4721ea8..5ee930e09 100644 --- a/library/tests/integration.test.ts +++ b/library/tests/integration.test.ts @@ -2,31 +2,31 @@ import { describe, expect, test } from 'vitest'; import { spawnSync } from 'node:child_process'; import { join } from 'node:path'; describe('Integration', () => { - test.each([ - ['4.9.5', false], - ['5.0.2', true], - ])( - 'with TypeScript version %s should work: %s', - (tsVersion, expectSuccess) => { - const npx = spawnSync('pnpm', [ - '--package', - `typescript@${tsVersion}`, - '--silent', - 'dlx', - 'tsc', - '--noEmit', - '--target', - 'ES6', - join(__dirname, 'testscript.ts'), - ]); + test.each([ + ['4.9.5', false], + ['5.0.2', true], + ])( + 'with TypeScript version %s should work: %s', + (tsVersion, expectSuccess) => { + const npx = spawnSync('pnpm', [ + '--package', + `typescript@${tsVersion}`, + '--silent', + 'dlx', + 'tsc', + '--noEmit', + '--target', + 'ES6', + join(__dirname, 'testscript.ts'), + ]); - const npxOutput = npx.output.toString(); - const containsError = npxOutput.includes('error TS'); - if (expectSuccess) { - expect(containsError).toBeFalsy(); - } else { - expect(containsError).toBeTruthy(); - } - } - ); + const npxOutput = npx.output.toString(); + const containsError = npxOutput.includes('error TS'); + if (expectSuccess) { + expect(containsError).toBeFalsy(); + } else { + expect(containsError).toBeTruthy(); + } + } + ); });