@@ -56,23 +56,20 @@ describe("Modbus client test", () => {
5656 it ( "use entity alias for coil" , ( ) => {
5757 const form : ModbusForm = {
5858 href : "modbus+tcp://127.0.0.1:8502/1/0?quantity=1" ,
59- "modv:entity" : "Coil"
59+ "modv:entity" : "Coil" ,
6060 } ;
6161
6262 /* eslint-disable dot-notation */
6363 client [ "validateAndFillDefaultForm" ] ( form , 0 ) [ "modv:function" ] . should . be . equal ( 1 , "Wrong default read Coil" ) ;
6464 client [ "validateAndFillDefaultForm" ] ( form , 1 ) [ "modv:function" ] . should . be . equal ( 5 , "Wrong write Coil" ) ;
65- client [ "validateAndFillDefaultForm" ] ( form , 2 ) [ "modv:function" ] . should . be . equal (
66- 15 ,
67- "Wrong write multiple Coil"
68- ) ;
65+ client [ "validateAndFillDefaultForm" ] ( form , 2 ) [ "modv:function" ] . should . be . equal ( 15 , "Wrong write multiple Coil" ) ;
6966 /* eslint-enable dot-notation */
7067 } ) ;
7168
7269 it ( "use entity alias for holding registries" , ( ) => {
7370 const form : ModbusForm = {
7471 href : "modbus+tcp://127.0.0.1:8502/1/0/?quantity=1" ,
75- "modv:entity" : "HoldingRegister"
72+ "modv:entity" : "HoldingRegister" ,
7673 } ;
7774 /* eslint-disable dot-notation */
7875 client [ "validateAndFillDefaultForm" ] ( form ) [ "modv:function" ] . should . be . equal ( 3 , "Wrong read Holding register" ) ;
0 commit comments