Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartinou committed Oct 21, 2024
1 parent 11ba264 commit 6d1519f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/triggers/providers/discord/Discord.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Discord extends Trigger {
url: this.joi.string().uri({
scheme: ['https'],
}).required(),
botusername: this.joi.string().default("WUD"),
botusername: this.joi.string().default('WUD'),
cardcolor: this.joi.number().default(65280),
cardlabel: this.joi.string().default(''),
});
Expand Down
18 changes: 9 additions & 9 deletions app/triggers/providers/mqtt/Hass.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test('publishDiscoveryMessage must publish a discovery message expected by HA',
identifiers: ['wud'],
manufacturer: 'WUD',
model: 'WUD',
name: "WUD",
name: 'WUD',
sw_version: 'unknown',
},
icon: 'mdi:docker',
Expand All @@ -65,7 +65,7 @@ test('addContainerSensor must publish sensor discovery message expected by HA',
],
manufacturer: 'WUD',
model: 'WUD',
name: "WUD",
name: 'WUD',
sw_version: 'unknown',
},
icon: 'mdi:docker',
Expand Down Expand Up @@ -101,7 +101,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
object_id: 'topic_total_count',
name: 'Total container count',
device: {
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
},
icon: 'mdi:docker',
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
Expand All @@ -113,7 +113,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
object_id: 'topic_update_count',
name: 'Total container update count',
device: {
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
},
icon: 'mdi:docker',
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
Expand All @@ -125,7 +125,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
object_id: 'topic_update_status',
name: 'Total container update status',
device: {
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUDWud', name: "WUD", sw_version: 'unknown',
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUDWud', name: 'WUD', sw_version: 'unknown',
},
icon: 'mdi:docker',
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
Expand All @@ -139,7 +139,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
object_id: 'topic_watcher-name_total_count',
name: 'Watcher watcher-name container count',
device: {
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
},
icon: 'mdi:docker',
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
Expand All @@ -151,7 +151,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
object_id: 'topic_watcher-name_update_count',
name: 'Watcher watcher-name container update count',
device: {
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
},
icon: 'mdi:docker',
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
Expand All @@ -163,7 +163,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
object_id: 'topic_watcher-name_update_status',
name: 'Watcher watcher-name container update status',
device: {
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
},
icon: 'mdi:docker',
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
Expand Down Expand Up @@ -204,7 +204,7 @@ test('updateWatcherSensors must publish all watcher sensor messages expected by
object_id: 'topic_watcher-name_running',
name: 'Watcher watcher-name running status',
device: {
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
},
icon: 'mdi:docker',
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
Expand Down

0 comments on commit 6d1519f

Please sign in to comment.