Skip to content

Commit

Permalink
Merge pull request #1288 from danielpeintner/issue-1287
Browse files Browse the repository at this point in the history
refactor: fix warning in VS code
  • Loading branch information
relu91 authored May 25, 2024
2 parents 944d3ac + 2885c4c commit 5c17b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/binding-modbus/test/modbus-client-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down

0 comments on commit 5c17b56

Please sign in to comment.