Updated createValidator.test.ts

Signed-off-by: bogdannechyporenko <bogdannechiporenko@gmail.com>
This commit is contained in:
bogdannechyporenko
2023-02-06 23:27:00 +01:00
parent a01c340122
commit 7c0b64e8b9
@@ -37,9 +37,6 @@ describe('createValidator', () => {
_context: { apiHolder: ApiHolder },
) => {
const input = values as string[];
if (input.length === 0) {
fieldValidation.addError('A tag name can not be empty');
}
for (const item of input) {
if (!/^[a-z0-9-]+$/.test(item)) {
fieldValidation.addError(