Skip to content

Commit

Permalink
Enhance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Jan 23, 2025
1 parent 4a0ffd8 commit 70533f8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/commonTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ function createTests(name, ChannelDetector, Types) {
expect(controls[0].type).to.be.equal(Types.lock);
const expectMyStateToHaveId = expectStateToHaveId.bind(null, controls[0].states);
expectMyStateToHaveId('SET', 'hm-rpc.0.LEQ090XYZ.1.STATE');
expectMyStateToHaveId('DOOR_STATE', 'hm-rpc.0.LEQ090XYZ.1.DOOR_STATE');

done();
});
Expand Down
23 changes: 23 additions & 0 deletions test/lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -501,5 +501,28 @@
},
"val": false,
"ack": true
},
"hm-rpc.0.LEQ090XYZ.1.DOOR_STATE": {
"type": "state",
"common": {
"name": "Schloss Kanal.DOOR_STATE",
"def": false,
"type": "boolean",
"read": true,
"write": false,
"role": "sensor.door"
},
"_id": "hm-rpc.0.LEQ090XYZ.1.DOOR_STATE",
"acl": {
"object": 1636,
"state": 1636,
"owner": "system.user.admin",
"ownerGroup": "system.group.administrator"
},
"from": "system.adapter.web.0",
"user": "system.user.admin",
"ts": 1626893980024,
"val": true,
"ack": true
}
}

0 comments on commit 70533f8

Please sign in to comment.