@@ -144,7 +144,7 @@ describe('58. properties.js', function() {
144
144
( oracledb . autoCommit ) . should . eql ( ! defaultValues . autoCommit ) ;
145
145
} )
146
146
147
- it ( '58.1.8 version' , function ( ) {
147
+ it ( '58.1.8 version (read-only) ' , function ( ) {
148
148
( oracledb . version ) . should . be . a . Number ;
149
149
150
150
try {
@@ -193,8 +193,16 @@ describe('58. properties.js', function() {
193
193
( oracledb . lobPrefetchSize ) . should . eql ( defaultValues . lobPrefetchSize + 1 ) ;
194
194
} )
195
195
196
- it ( '58.1.14 oracleClientVersion' , function ( ) {
197
- var t = oracledb . oracleClientVersion ;
196
+ it ( '58.1.14 oracleClientVersion (read-only)' , function ( ) {
197
+ var t = oracledb . oracleClientVersion ;
198
+ t . should . be . a . Number ;
199
+
200
+ try {
201
+ oracledb . oracleClientVersion ++ ;
202
+ } catch ( err ) {
203
+ should . exist ( err ) ;
204
+ ( err . message ) . should . startWith ( 'NJS-014' ) ;
205
+ }
198
206
} ) ;
199
207
200
208
} ) // 58.1
@@ -299,7 +307,7 @@ describe('58. properties.js', function() {
299
307
} ) ;
300
308
} )
301
309
302
- it ( '58.3.1 Connection object intial toString values' , function ( ) {
310
+ it ( '58.3.1 Connection object initial toString values' , function ( ) {
303
311
connection . should . be . an . Object ;
304
312
305
313
should . equal ( connection . action , null ) ;
@@ -310,7 +318,7 @@ describe('58. properties.js', function() {
310
318
( connection . stmtCacheSize ) . should . be . greaterThan ( 0 ) ;
311
319
} )
312
320
313
- it ( '58.3.2 stmtCacheSize' , function ( ) {
321
+ it ( '58.3.2 stmtCacheSize (read-only) ' , function ( ) {
314
322
var t = connection . stmtCacheSize ;
315
323
t . should . be . a . Number ;
316
324
@@ -322,7 +330,7 @@ describe('58. properties.js', function() {
322
330
}
323
331
} )
324
332
325
- it ( '58.3.3 clientId' , function ( ) {
333
+ it ( '58.3.3 clientId (write-only) ' , function ( ) {
326
334
try {
327
335
var t = connection . clientId ;
328
336
} catch ( err ) {
@@ -340,7 +348,7 @@ describe('58. properties.js', function() {
340
348
connection . clientId = "103.3" ;
341
349
} )
342
350
343
- it ( '58.3.4 action' , function ( ) {
351
+ it ( '58.3.4 action (write-only) ' , function ( ) {
344
352
345
353
try {
346
354
var t = connection . action ;
@@ -359,7 +367,7 @@ describe('58. properties.js', function() {
359
367
connection . action = "103.3 action" ;
360
368
} )
361
369
362
- it ( '58.3.5 module' , function ( ) {
370
+ it ( '58.3.5 module (write-only) ' , function ( ) {
363
371
364
372
try {
365
373
var t = connection . module ;
@@ -378,12 +386,16 @@ describe('58. properties.js', function() {
378
386
connection . module = "103.3 module" ;
379
387
} )
380
388
381
- it ( '58.3.6 oracleServerVersion' , function ( ) {
389
+ it ( '58.3.6 oracleServerVersion (read-only)' , function ( ) {
390
+ var t = connection . oracleServerVersion ;
391
+ t . should . be . a . Number ;
392
+
382
393
try {
383
- var t = connection . oracleServerVersion ;
394
+ connection . oracleServerVersion ++ ;
384
395
}
385
- catch ( err ) {
396
+ catch ( err ) {
386
397
should . exist ( err ) ;
398
+ ( err . message ) . should . startWith ( 'NJS-014' ) ;
387
399
}
388
400
} ) ;
389
401
0 commit comments