This commit is contained in:
ShareVB committed 2024-12-01 14:44:06 +01:00
1 parent 109a869256
commit f47dcf28fe
2 files changed
+12 -12

No files matched your search

@@ -14,7 +14,7 @@ test.describe('Tool - CSV to JSON', () => {
Age,Salary,Gender,Country,Purchased Age,Salary,Gender,Country,Purchased
18,20000,Male,Germany,N 18,20000,Male,Germany,N
19,22000,Female,France,N 19,22000,Female,France,N
`); `.trim());
const generatedJson = await page.getByTestId('area-content').innerText(); const generatedJson = await page.getByTestId('area-content').innerText();
+11 -11
View File
@@ -26,19 +26,19 @@ test.describe('Tool - JSON to TS', () => {
expect(generatedJson.trim()).toEqual( expect(generatedJson.trim()).toEqual(
` `
interface DataProps { interface DataProps {
foo: string; foo: string;
list: List; list: List;
} }
interface List { interface List {
name: string; name: string;
another: Another; another: Another;
} }
interface Another { interface Another {
key: string; key: string;
} }
`.trim(), `.trim(),
); );
}); });