Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Aug 26, 2018
1 parent 7ba2260 commit a1c66a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions characteristics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = function (charName, obj, iface) {
const {acc, settings, subtype} = obj;
const {mqttStatus, mqttPub, mqttSub, Characteristic, log} = iface;

/* istanbul ignore if */
if (!Characteristic[charName]) {
throw new Error('Unknown Characteristic ' + charName);
}
Expand All @@ -18,6 +19,7 @@ module.exports = function (charName, obj, iface) {
setTopic = setTopicShort;
}

/* istanbul ignore if */
if (statusTopic !== statusTopicShort && settings.topic[statusTopicShort]) {
statusTopic = statusTopicShort;
}
Expand Down
2 changes: 1 addition & 1 deletion test/test-cam.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"props": {}
}
],
"fileChangeIndicator": "lhj34y"
"fileChangeIndicator": "l3kn7"
}
}
6 changes: 5 additions & 1 deletion test/test-oz.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@
"fahrenheit": true
},
"config": {},
"props": {}
"props": {
"CurrentTemperature": {
"minValue": -50
}
}
}
]
},
Expand Down

0 comments on commit a1c66a0

Please sign in to comment.