File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,23 @@ describe('basic-querying', function() {
462462 } ) ;
463463 } ) ;
464464
465+ it ( 'supports non-empty inq' , function ( ) {
466+ // note there is no record with seq=100
467+ return User . find ( { where : { seq : { inq : [ 0 , 1 , 100 ] } } } )
468+ . then ( function ( result ) {
469+ var seqsFound = result . map ( function ( r ) { return r . seq ; } ) ;
470+ should ( seqsFound ) . eql ( [ 0 , 1 ] ) ;
471+ } ) ;
472+ } ) ;
473+
474+ it ( 'supports empty inq' , function ( ) {
475+ return User . find ( { where : { seq : { inq : [ ] } } } )
476+ . then ( function ( result ) {
477+ var seqsFound = result . map ( function ( r ) { return r . seq ; } ) ;
478+ should ( seqsFound ) . eql ( [ ] ) ;
479+ } ) ;
480+ } ) ;
481+
465482 var itWhenIlikeSupported = connectorCapabilities . ilike ? it : it . skip . bind ( it ) ;
466483
467484 itWhenIlikeSupported ( 'should support "like" that is satisfied' , function ( done ) {
You can’t perform that action at this time.
0 commit comments