From 2885c4cc8d88dd8dd98e2b89e750fc1ead65efbb Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Wed, 22 May 2024 15:32:57 +0200 Subject: [PATCH] refactor: fix warning in VS code --- packages/binding-modbus/test/modbus-client-test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/binding-modbus/test/modbus-client-test.ts b/packages/binding-modbus/test/modbus-client-test.ts index ad5cc9577..ea3197e2a 100644 --- a/packages/binding-modbus/test/modbus-client-test.ts +++ b/packages/binding-modbus/test/modbus-client-test.ts @@ -267,12 +267,12 @@ describe("Modbus client test", () => { }); it("should throw exception for unknown function", () => { - const form: ModbusForm = { + const form = { href: "modbus+tcp://127.0.0.1:8502/1/0?quantity=3", "modv:function": 255, }; - const promise = client.readResource(form); + const promise = client.readResource(form as ModbusForm); return promise.should.eventually.rejectedWith("Undefined function number or name: 255"); });