@@ -59,6 +59,7 @@ describe('58. properties.js', function() {
59
59
defaultValues . poolPingInterval = oracledb . poolPingInterval ;
60
60
defaultValues . fetchAsBuffer = oracledb . fetchAsBuffer ;
61
61
defaultValues . edition = oracledb . edition ;
62
+ defaultValues . events = oracledb . events ;
62
63
} ) ;
63
64
64
65
after ( 'restore the values' , function ( ) {
@@ -80,6 +81,7 @@ describe('58. properties.js', function() {
80
81
oracledb . poolPingInterval = defaultValues . poolPingInterval ;
81
82
oracledb . fetchAsBuffer = defaultValues . fetchAsBuffer ;
82
83
oracledb . edition = defaultValues . edition ;
84
+ oracledb . events = defaultValues . events ;
83
85
} ) ;
84
86
85
87
it ( '58.1.1 poolMin' , function ( ) {
@@ -334,6 +336,23 @@ describe('58. properties.js', function() {
334
336
) ;
335
337
} ) ;
336
338
339
+ it ( '58.1.29 events' , function ( ) {
340
+ var t = oracledb . events ;
341
+ oracledb . events = true ;
342
+
343
+ should . strictEqual ( t , false ) ;
344
+ should . strictEqual ( oracledb . events , true ) ;
345
+ } ) ;
346
+
347
+ it ( '58.1.30 Negative - events' , function ( ) {
348
+ should . throws (
349
+ function ( ) {
350
+ oracledb . events = 'hello' ;
351
+ } ,
352
+ / N J S - 0 0 4 : i n v a l i d v a l u e f o r p r o p e r t y e v e n t s /
353
+ ) ;
354
+ } ) ;
355
+
337
356
} ) ; // 58.1
338
357
339
358
describe ( '58.2 Pool Class' , function ( ) {
0 commit comments