Skip to content

Commit

Permalink
refactor: fix warning in VS code
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeintner committed May 22, 2024
1 parent 944d3ac commit 2885c4c
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 2885c4c

Please sign in to comment.