From ed7f12eb8907c9634175acd978ed35c643ff5fd0 Mon Sep 17 00:00:00 2001 From: noned80 <78446350+noned80@users.noreply.github.com> Date: Tue, 2 Feb 2021 22:44:29 +0100 Subject: [PATCH] Spelling correction of error message (#6056) --- lib/util/utils.js | 2 +- test/settings.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/utils.js b/lib/util/utils.js index e169e9ae..f177c9c2 100644 --- a/lib/util/utils.js +++ b/lib/util/utils.js @@ -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}'`); diff --git a/test/settings.test.js b/test/settings.test.js index 4bafd221..d342ccd6 100644 --- a/test/settings.test.js +++ b/test/settings.test.js @@ -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])); });