mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 14:01:20 +00:00
#3281 Add tests for new bridge API
This commit is contained in:
1 parent
1638b81723
commit
409fb2407a
6 files changed
+283
-75
No files matched your search
@@ -124,7 +124,6 @@ function getObjectsProperty(objects, key, defaultValue) {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
/* istanbul ignore next newApi */
|
||||
function getResponse(request, data, error) {
|
||||
const response = {data, status: error ? 'error' : 'ok'};
|
||||
if (error) response.error = error;
|
||||
|
||||
Reference in new issue
Block a user