Skip to content

Commit 5c17b56

Browse files
authored
Merge pull request #1288 from danielpeintner/issue-1287
refactor: fix warning in VS code
2 parents 944d3ac + 2885c4c commit 5c17b56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/binding-modbus/test/modbus-client-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,12 @@ describe("Modbus client test", () => {
267267
});
268268

269269
it("should throw exception for unknown function", () => {
270-
const form: ModbusForm = {
270+
const form = {
271271
href: "modbus+tcp://127.0.0.1:8502/1/0?quantity=3",
272272
"modv:function": 255,
273273
};
274274

275-
const promise = client.readResource(form);
275+
const promise = client.readResource(form as ModbusForm);
276276

277277
return promise.should.eventually.rejectedWith("Undefined function number or name: 255");
278278
});

0 commit comments

Comments
 (0)