update tests for org add/edit refactor

This commit is contained in:
Keith Grant
2019-03-28 13:02:04 -04:00
parent 64e933acb4
commit 6353d5e410
8 changed files with 424 additions and 334 deletions

View File

@@ -11,7 +11,8 @@ export function required (message) {
export function maxLength (max) {
return value => {
if (value.trim() > max) {
if (value.trim().length
> max) {
return i18nMark(`This field must not exceed ${max} characters`);
}
return undefined;