mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-12 14:48:57 +00:00
Spelling correction of error message (#6056)
This commit is contained in:
+1
-1
@@ -196,7 +196,7 @@ function validateFriendlyName(name) {
|
||||
}
|
||||
}
|
||||
|
||||
if (name.length === 0) errors.push(`friendly_name shoud atleast be 1 char long`);
|
||||
if (name.length === 0) errors.push(`friendly_name must be at least 1 char long`);
|
||||
if (name.endsWith('/') || name.startsWith('/')) errors.push(`friendly_name is not allowed to end or start with /`);
|
||||
if (name.endsWith(String.fromCharCode(0))) errors.push(`friendly_name is not allowed to contain null char`);
|
||||
if (endpointNames.includes(name)) errors.push(`Following friendly_name are not allowed: '${endpointNames}'`);
|
||||
|
||||
@@ -737,7 +737,7 @@ describe('Settings', () => {
|
||||
|
||||
settings._reRead();
|
||||
|
||||
const error = `friendly_name shoud atleast be 1 char long`;
|
||||
const error = `friendly_name must be at least 1 char long`;
|
||||
expect(settings.validate()).toEqual(expect.arrayContaining([error]));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user