Skip to content

Commit fb80d8a

Browse files
committed
fix(csv to json): e2e test
1 parent 62802ff commit fb80d8a

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/tools/csv-to-json/csv-to-json.e2e.spec.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,20 @@ Age,Salary,Gender,Country,Purchased
2020

2121
expect(generatedJson.trim()).toEqual(`
2222
[
23-
{"Age": "18", "Salary": "20000", "Gender": "Male", "Country": "Germany", "Purchased": "N"},
24-
{"Age": "19", "Salary": "22000", "Gender": "Female", "Country": "France", "Purchased": "N"}
23+
{
24+
"Age": "18",
25+
"Salary": "20000",
26+
"Gender": "Male",
27+
"Country": "Germany",
28+
"Purchased": "N"
29+
},
30+
{
31+
"Age": "19",
32+
"Salary": "22000",
33+
"Gender": "Female",
34+
"Country": "France",
35+
"Purchased": "N"
36+
}
2537
]
2638
`.trim(),
2739
);

0 commit comments

Comments
 (0)