@@ -35,62 +35,15 @@ var oracledb = require('oracledb');
3535var should = require ( 'should' ) ;
3636var dbConfig = require ( './dbconfig.js' ) ;
3737
38- try {
39- oracledbCLib = require ( '../build/Release/oracledb' ) ;
40- } catch ( err ) {
41- if ( err . code === 'MODULE_NOT_FOUND' ) {
42- oracledbCLib = require ( '../build/Debug/oracledb' ) ;
43- } else {
44- throw err ;
45- }
46- }
47-
4838describe ( '45. instanceof.js' , function ( ) {
4939
50- it ( '45.1 all constructors have been accounted for' , function ( done ) {
51- var cLibKeysIdx ;
52- var cLibKeys ;
53- var instKeysIdx ;
54- var instKeys ;
55- var foundAllConstructors = true ;
56-
57- cLibKeys = Object . keys ( oracledbCLib ) ;
58- instKeys = Object . keys ( oracledb ) ;
59-
60- cLibLoop:
61- for ( cLibKeysIdx = 0 ; cLibKeysIdx < cLibKeys . length ; cLibKeysIdx += 1 ) {
62- if ( typeof oracledbCLib [ cLibKeys [ cLibKeysIdx ] ] !== 'function' ) {
63- continue cLibLoop;
64- }
65-
66- for ( instKeysIdx = 0 ; instKeysIdx < instKeys . length ; instKeysIdx += 1 ) {
67- if ( cLibKeys [ cLibKeysIdx ] === instKeys [ instKeysIdx ] ||
68- // The following exception is because the Lob class is documented as "Lob"
69- // so that's how it was exposed on the instance
70- cLibKeys [ cLibKeysIdx ] === 'ILob' && instKeys [ instKeysIdx ] === 'Lob'
71- ) {
72- continue cLibLoop;
73- }
74- }
75-
76- foundAllConstructors = false ;
77- console . log ( 'Failed to account for ' + cLibKeys [ cLibKeysIdx ] ) ;
78-
79- break cLibLoop;
80- }
81-
82- foundAllConstructors . should . be . true ;
83-
84- done ( ) ;
85- } ) ;
86-
87- it ( '45.2 instanceof works for the oracledb instance' , function ( done ) {
40+ it ( '45.1 instanceof works for the oracledb instance' , function ( done ) {
8841 ( oracledb instanceof oracledb . Oracledb ) . should . be . true ;
8942
9043 done ( ) ;
9144 } ) ;
9245
93- it ( '45.3 instanceof works for pool instances' , function ( done ) {
46+ it ( '45.2 instanceof works for pool instances' , function ( done ) {
9447 oracledb . createPool (
9548 {
9649 externalAuth : dbConfig . externalAuth ,
@@ -115,7 +68,7 @@ describe('45. instanceof.js', function() {
11568 ) ;
11669 } ) ;
11770
118- it ( '45.4 instanceof works for connection instances' , function ( done ) {
71+ it ( '45.3 instanceof works for connection instances' , function ( done ) {
11972 oracledb . getConnection ( dbConfig , function ( err , conn ) {
12073 should . not . exist ( err ) ;
12174
@@ -129,7 +82,7 @@ describe('45. instanceof.js', function() {
12982 } ) ;
13083 } ) ;
13184
132- it ( '45.5 instanceof works for resultset instances' , function ( done ) {
85+ it ( '45.4 instanceof works for resultset instances' , function ( done ) {
13386 oracledb . getConnection ( dbConfig , function ( err , conn ) {
13487 should . not . exist ( err ) ;
13588
@@ -158,7 +111,7 @@ describe('45. instanceof.js', function() {
158111 } ) ;
159112 } ) ;
160113
161- it ( '45.6 instanceof works for lob instances' , function ( done ) {
114+ it ( '45.5 instanceof works for lob instances' , function ( done ) {
162115 oracledb . getConnection ( dbConfig , function ( err , conn ) {
163116 should . not . exist ( err ) ;
164117
0 commit comments