File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -89,16 +89,31 @@ jSQL.load(function () {
8989 expect ( ( q . fetch ( "ASSOC" ) . greet === "holla" ) ) . to . be . true ;
9090 } ) ;
9191
92+ it ( 'select from keytest2 table again once again' , function ( ) {
93+ var q = jSQL . query ( "SELECT * FROM `keytest2` WHERE `greet` LIKE ?" ) . execute ( [ '%olla' ] ) ;
94+ expect ( ( q . fetch ( "ASSOC" ) . greet === "holla" ) ) . to . be . true ;
95+ } ) ;
96+
9297 it ( 'select from keytest2 table again once again once' , function ( ) {
9398 var q = jSQL . query ( "SELECT * FROM `keytest2` WHERE `greet` LIKE '%o%'" ) . execute ( ) ;
9499 expect ( ( q . fetchAll ( "ASSOC" ) . length === 2 ) ) . to . be . true ;
95100 } ) ;
96101
102+ it ( 'select from keytest2 table again once again once' , function ( ) {
103+ var q = jSQL . query ( "SELECT * FROM `keytest2` WHERE `greet` LIKE ?" ) . execute ( [ '%o%' ] ) ;
104+ expect ( ( q . fetchAll ( "ASSOC" ) . length === 2 ) ) . to . be . true ;
105+ } ) ;
106+
97107 it ( 'select from keytest2 table again once again once more' , function ( ) {
98108 var q = jSQL . query ( "SELECT * FROM `keytest2` WHERE `greet` LIKE 'p%'" ) . execute ( ) ;
99109 expect ( ( q . fetchAll ( "ASSOC" ) . length === 1 ) ) . to . be . true ;
100110 } ) ;
101111
112+ it ( 'select from keytest2 table again once again once more' , function ( ) {
113+ var q = jSQL . query ( "SELECT * FROM `keytest2` WHERE `greet` LIKE ?" ) . execute ( [ 'p%' ] ) ;
114+ expect ( ( q . fetchAll ( "ASSOC" ) . length === 1 ) ) . to . be . true ;
115+ } ) ;
116+
102117 it ( 'update keytest2 table' , function ( ) {
103118 var q = jSQL . query ( "update `keytest2` set `greet` = 'yyyyo' where id = 12" ) . execute ( ) ;
104119 expect ( ( jSQL . tables . keytest2 . data [ 1 ] [ 2 ] === 'yyyyo' ) ) . to . be . true ;
You can’t perform that action at this time.
0 commit comments