File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ describe('koa-validate' , function(){
169
169
this . checkBody ( 'div' ) . isDivisibleBy ( 3 ) ;
170
170
this . checkBody ( 'n' ) . isNull ( ) ;
171
171
this . checkBody ( 'len' ) . isLength ( 3 , 4 ) ;
172
+ this . checkBody ( 'len1' ) . isLength ( 3 , 4 ) ;
172
173
this . checkBody ( 'byteLenght' ) . isByteLength ( 4 , 6 ) ;
173
174
this . checkBody ( 'uuid' ) . isUUID ( ) ;
174
175
this . checkBody ( 'time' ) . isTime ( ) ;
@@ -185,7 +186,8 @@ describe('koa-validate' , function(){
185
186
this . checkBody ( 'hw' ) . isHalfWidth ( ) ;
186
187
this . checkBody ( 'vw' ) . isVariableWidth ( ) ;
187
188
this . checkBody ( 'sp' ) . isSurrogatePair ( ) ;
188
- if ( this . errors . length === 48 ) {
189
+ console . log ( this . errors )
190
+ if ( this . errors . length === 49 ) {
189
191
this . body = this . errors ;
190
192
this . body = 'ok' ;
191
193
return ;
@@ -200,6 +202,7 @@ describe('koa-validate' , function(){
200
202
empty :"fd" ,
201
203
email :"jim@@gmail.com" ,
202
204
len :"l" ,
205
+ len1 :"length1" ,
203
206
match :"xyz" ,
204
207
integer :"12a" ,
205
208
float_ :'a1.23' ,
You can’t perform that action at this time.
0 commit comments