Skip to content

Commit 6d1519f

Browse files
committed
Fix UT
1 parent 11ba264 commit 6d1519f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

app/triggers/providers/discord/Discord.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Discord extends Trigger {
1515
url: this.joi.string().uri({
1616
scheme: ['https'],
1717
}).required(),
18-
botusername: this.joi.string().default("WUD"),
18+
botusername: this.joi.string().default('WUD'),
1919
cardcolor: this.joi.number().default(65280),
2020
cardlabel: this.joi.string().default(''),
2121
});

app/triggers/providers/mqtt/Hass.test.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test('publishDiscoveryMessage must publish a discovery message expected by HA',
3939
identifiers: ['wud'],
4040
manufacturer: 'WUD',
4141
model: 'WUD',
42-
name: "WUD",
42+
name: 'WUD',
4343
sw_version: 'unknown',
4444
},
4545
icon: 'mdi:docker',
@@ -65,7 +65,7 @@ test('addContainerSensor must publish sensor discovery message expected by HA',
6565
],
6666
manufacturer: 'WUD',
6767
model: 'WUD',
68-
name: "WUD",
68+
name: 'WUD',
6969
sw_version: 'unknown',
7070
},
7171
icon: 'mdi:docker',
@@ -101,7 +101,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
101101
object_id: 'topic_total_count',
102102
name: 'Total container count',
103103
device: {
104-
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
104+
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
105105
},
106106
icon: 'mdi:docker',
107107
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
@@ -113,7 +113,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
113113
object_id: 'topic_update_count',
114114
name: 'Total container update count',
115115
device: {
116-
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
116+
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
117117
},
118118
icon: 'mdi:docker',
119119
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
@@ -125,7 +125,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
125125
object_id: 'topic_update_status',
126126
name: 'Total container update status',
127127
device: {
128-
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUDWud', name: "WUD", sw_version: 'unknown',
128+
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUDWud', name: 'WUD', sw_version: 'unknown',
129129
},
130130
icon: 'mdi:docker',
131131
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
@@ -139,7 +139,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
139139
object_id: 'topic_watcher-name_total_count',
140140
name: 'Watcher watcher-name container count',
141141
device: {
142-
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
142+
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
143143
},
144144
icon: 'mdi:docker',
145145
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
@@ -151,7 +151,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
151151
object_id: 'topic_watcher-name_update_count',
152152
name: 'Watcher watcher-name container update count',
153153
device: {
154-
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
154+
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
155155
},
156156
icon: 'mdi:docker',
157157
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
@@ -163,7 +163,7 @@ test('updateContainerSensors must publish all sensors expected by HA', async ()
163163
object_id: 'topic_watcher-name_update_status',
164164
name: 'Watcher watcher-name container update status',
165165
device: {
166-
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
166+
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
167167
},
168168
icon: 'mdi:docker',
169169
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',
@@ -204,7 +204,7 @@ test('updateWatcherSensors must publish all watcher sensor messages expected by
204204
object_id: 'topic_watcher-name_running',
205205
name: 'Watcher watcher-name running status',
206206
device: {
207-
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: "WUD", sw_version: 'unknown',
207+
identifiers: ['wud'], manufacturer: 'WUD', model: 'WUD', name: 'WUD', sw_version: 'unknown',
208208
},
209209
icon: 'mdi:docker',
210210
entity_picture: 'https://github.com/getwud/wud/raw/main/docs/wud_logo.png',

0 commit comments

Comments
 (0)