Skip to content

Commit 95925c7

Browse files
committed
add null value test
1 parent 9674b27 commit 95925c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_validate.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ describe('koa-validate' , function(){
199199
this.checkBody('mac').isMACAddress();
200200
this.checkBody('isin').isISIN();
201201
this.checkBody('fqdn').isFQDN();
202-
if(this.errors.length === 56){
202+
this.checkBody('fqdn1').isFQDN();
203+
if(this.errors.length === 57){
203204
this.body = this.errors;
204205
this.body = 'ok';
205206
return ;

0 commit comments

Comments
 (0)