From e5bafddb03e2f5ad98a8e29fcfaa9a6e2234688b Mon Sep 17 00:00:00 2001 From: fgb4101 Date: Wed, 27 Feb 2019 18:35:06 -0500 Subject: [PATCH] Added tests for 'string.length' method. --- types/yup/yup-tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/yup/yup-tests.ts b/types/yup/yup-tests.ts index fdead13b2b..0c515ef78c 100644 --- a/types/yup/yup-tests.ts +++ b/types/yup/yup-tests.ts @@ -292,6 +292,8 @@ strSchema.isValid("hello"); // => true strSchema.required(); strSchema.required("req"); strSchema.required(() => "req"); +strSchema.length(5, "message"); +strSchema.length(5, () => "message"); strSchema.min(5, "message"); strSchema.min(5, () => "message"); strSchema.max(5, "message");