Skip to content

Commit f955ce6

Browse files
committed
test: update parser test to reflect case-mismatch warning behavior
Signed-off-by: Pranav-0440 <pranavghorpade61@gmail.com>
1 parent f2d5943 commit f955ce6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/utils/parser.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ temperature,number,40001,coil,1,2,false,03,true,true,/temperature`;
3636
href: "/temperature",
3737
},
3838
]);
39-
expect(warnings).toEqual([]);
39+
expect(warnings).toEqual([
40+
{
41+
row: 2,
42+
column: "modbus:entity",
43+
message: 'Modbus entity "coil" has incorrect casing; expected "Coil"',
44+
},
45+
]);
4046
});
4147

4248
test("should handle empty CSV content", () => {

0 commit comments

Comments
 (0)