@@ -288,26 +288,6 @@ describe('19. fetchTimestampAsString.js', function() {
288
288
289
289
} ) ; // 19.3
290
290
291
- function test9 ( table , want , callback ) {
292
- var sql = "select content from " + table + " order by num" ;
293
- var stream = connection . queryStream (
294
- sql ,
295
- [ ] ,
296
- { fetchInfo : { "CONTENT" : { type : oracledb . STRING } } }
297
- ) ;
298
-
299
- var result = [ ] ;
300
- stream . on ( 'data' , function ( data ) {
301
- should . exist ( data ) ;
302
- result . push ( data ) ;
303
- } ) ;
304
-
305
- stream . on ( 'end' , function ( ) {
306
- should . deepEqual ( result , want ) ;
307
- setTimeout ( callback , 100 ) ;
308
- } ) ;
309
- }
310
-
311
291
// fetchInfo option
312
292
function test1 ( table , want , callback ) {
313
293
connection . execute (
@@ -496,14 +476,24 @@ describe('19. fetchTimestampAsString.js', function() {
496
476
) ;
497
477
}
498
478
499
- } ) ;
500
-
501
-
502
-
503
-
504
-
505
-
506
-
479
+ function test9 ( table , want , callback ) {
480
+ var sql = "select content from " + table + " order by num" ;
481
+ var stream = connection . queryStream (
482
+ sql ,
483
+ [ ] ,
484
+ { fetchInfo : { "CONTENT" : { type : oracledb . STRING } } }
485
+ ) ;
507
486
487
+ var result = [ ] ;
488
+ stream . on ( 'data' , function ( data ) {
489
+ should . exist ( data ) ;
490
+ result . push ( data ) ;
491
+ } ) ;
508
492
493
+ stream . on ( 'end' , function ( ) {
494
+ should . deepEqual ( result , want ) ;
495
+ setTimeout ( callback , 100 ) ;
496
+ } ) ;
497
+ }
509
498
499
+ } ) ;
0 commit comments