@@ -19,6 +19,7 @@ describe('Validator option: allowBlank', function () {
1919 assert . ok ( test ( length , blank , { is : 300 , allowBlank : false } ) . indexOf ( 'form.errors' ) === 0 )
2020 assert . ok ( test ( numericality , blank , { allowBlank : false } ) . indexOf ( 'form.errors' ) === 0 )
2121 assert . ok ( test ( url , blank , { allowBlank : false } ) . indexOf ( 'form.errors' ) === 0 )
22+ assert . ok ( test ( file , blank , { allowBlank : false } ) . indexOf ( 'form.errors' ) === 0 )
2223 } )
2324 assert . ok ( test ( file , new FileList ( ) , { allowBlank : false } ) . indexOf ( 'form.errors' ) === 0 )
2425 } )
@@ -32,6 +33,7 @@ describe('Validator option: allowBlank', function () {
3233 assert . ok ( ! test ( length , blank , { is : 300 , allowBlank : true } ) )
3334 assert . ok ( ! test ( numericality , blank , { allowBlank : true } ) )
3435 assert . ok ( ! test ( url , blank , { allowBlank : true } ) )
36+ assert . ok ( ! test ( file , blank , { allowBlank : true } ) )
3537 } )
3638 assert . ok ( ! test ( file , new FileList ( ) , { allowBlank : true } ) )
3739 } )
@@ -49,6 +51,7 @@ describe('Validator option: allowBlank', function () {
4951 assert . ok ( allowBlank !== ( test ( length , blank , { is : 300 } ) . indexOf ( 'form.errors' ) === 0 ) )
5052 assert . ok ( allowBlank !== ( test ( numericality , blank ) . indexOf ( 'form.errors' ) === 0 ) )
5153 assert . ok ( allowBlank !== ( test ( url , blank ) . indexOf ( 'form.errors' ) === 0 ) )
54+ assert . ok ( allowBlank !== ( test ( file , blank ) . indexOf ( 'form.errors' ) === 0 ) )
5255 } )
5356 } )
5457
0 commit comments