Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Jan 3, 2025
1 parent b705a1a commit ee6429c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/editor/util/validation/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ export function validate (
// make sure value is parseable to a number
if (isNaN(num)) {
return {
result: validationIssue('Field must be a valid number', field.name)
result: validationIssue('Field must be a valid number.', field.name)
}
}

// make sure value is positive
if (num < 0) {
return {
result: validationIssue('Field must be a positive number', field.name)
result: validationIssue('Field must be a positive number.', field.name)
}
}

Expand All @@ -111,7 +111,7 @@ export function validate (
)
if (!isValid) {
return {
result: validationIssue('Field must be a valid route type', field.name)
result: validationIssue('Field must be a valid route type.', field.name)
}
}

Expand Down Expand Up @@ -413,7 +413,7 @@ export function validate (
)
)
) {
return validationIssue('Field must be a positive integer', field.name)
return validationIssue('Field must be a positive integer.', field.name)
}
return false
case 'POSITIVE_NUM':
Expand Down

0 comments on commit ee6429c

Please sign in to comment.