mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-21 13:34:04 +03:00
fix: e2e
This commit is contained in:
1 parent
109a869256
commit
f47dcf28fe
2 files changed
+14
-14
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();
|
||||||
|
|
||||||
|
|||||||
@@ -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(),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user