Spelling correction of error message (#6056)

This commit is contained in:
noned80
2021-02-02 22:44:29 +01:00
committed by GitHub
parent efd1a2e8ad
commit ed7f12eb89
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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}'`);
+1 -1
View File
@@ -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]));
});