From f47dcf28fedc95ce5c2328c8e6f5ad8eae2c51cb Mon Sep 17 00:00:00 2001 From: ShareVB Date: Sun, 1 Dec 2024 14:44:06 +0100 Subject: [PATCH] fix: e2e --- src/tools/csv-to-json/csv-to-json.e2e.spec.ts | 2 +- src/tools/json-to-ts/json-to-ts.e2e.spec.ts | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/tools/csv-to-json/csv-to-json.e2e.spec.ts b/src/tools/csv-to-json/csv-to-json.e2e.spec.ts index 6ae90e9f..391a3279 100644 --- a/src/tools/csv-to-json/csv-to-json.e2e.spec.ts +++ b/src/tools/csv-to-json/csv-to-json.e2e.spec.ts @@ -14,7 +14,7 @@ test.describe('Tool - CSV to JSON', () => { Age,Salary,Gender,Country,Purchased 18,20000,Male,Germany,N 19,22000,Female,France,N - `); + `.trim()); const generatedJson = await page.getByTestId('area-content').innerText(); diff --git a/src/tools/json-to-ts/json-to-ts.e2e.spec.ts b/src/tools/json-to-ts/json-to-ts.e2e.spec.ts index 2e4f4884..d97cf4cf 100644 --- a/src/tools/json-to-ts/json-to-ts.e2e.spec.ts +++ b/src/tools/json-to-ts/json-to-ts.e2e.spec.ts @@ -26,19 +26,19 @@ test.describe('Tool - JSON to TS', () => { expect(generatedJson.trim()).toEqual( ` - interface DataProps { - foo: string; - list: List; - } - - interface List { - name: string; - another: Another; - } - - interface Another { - key: string; - } +interface DataProps { + foo: string; + list: List; +} + +interface List { + name: string; + another: Another; +} + +interface Another { + key: string; +} `.trim(), ); });