@@ -46,10 +46,11 @@ describe('iSql Functional Tests', function () {
4646 connection . add ( sql ) ;
4747 connection . run ( ( xmlOut ) => {
4848 const parser = new XMLParser ( {
49- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
49+ // Added ignoreAttributes to allow fast-xml-parser to return description.
50+ ignoreAttributes : false ,
5051 attributeNamePrefix : '' ,
5152 } ) ;
52- let result = parser . parse ( xmlOut ) ;
53+ const result = parser . parse ( xmlOut ) ;
5354 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
5455 const sqlNode = result . myscript . sql ;
5556 expect ( sqlNode . prepare . success ) . to . include ( '+++ success' ) ;
@@ -80,10 +81,11 @@ describe('iSql Functional Tests', function () {
8081 connection . add ( sql ) ;
8182 connection . run ( ( xmlOut ) => {
8283 const parser = new XMLParser ( {
83- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
84+ // Added ignoreAttributes to allow fast-xml-parser to return description.
85+ ignoreAttributes : false ,
8486 attributeNamePrefix : '' ,
8587 } ) ;
86- let result = parser . parse ( xmlOut ) ;
88+ const result = parser . parse ( xmlOut ) ;
8789 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
8890 const sqlNode = result . myscript . sql ;
8991 expect ( sqlNode . query . success ) . to . include ( '+++ success' ) ;
@@ -108,10 +110,11 @@ describe('iSql Functional Tests', function () {
108110 connection . add ( sql ) ;
109111 connection . run ( ( xmlOut ) => {
110112 const parser = new XMLParser ( {
111- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
113+ // Added ignoreAttributes to allow fast-xml-parser to return description.
114+ ignoreAttributes : false ,
112115 attributeNamePrefix : '' ,
113116 } ) ;
114- let result = parser . parse ( xmlOut ) ;
117+ const result = parser . parse ( xmlOut ) ;
115118 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
116119 const sqlNode = result . myscript . sql ;
117120 expect ( sqlNode . query . success ) . to . include ( '+++ success' ) ;
@@ -134,10 +137,11 @@ describe('iSql Functional Tests', function () {
134137 connection . add ( sql . toXML ( ) ) ;
135138 connection . run ( ( xmlOut ) => {
136139 const parser = new XMLParser ( {
137- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
140+ // Added ignoreAttributes to allow fast-xml-parser to return description.
141+ ignoreAttributes : false ,
138142 attributeNamePrefix : '' ,
139143 } ) ;
140- let result = parser . parse ( xmlOut ) ;
144+ const result = parser . parse ( xmlOut ) ;
141145 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
142146 expect ( result . myscript . sql . tables . success ) . to . include ( '+++ success' ) ;
143147 const { data } = result . myscript . sql . tables . row ;
@@ -161,10 +165,11 @@ describe('iSql Functional Tests', function () {
161165 connection . add ( sql . toXML ( ) ) ;
162166 connection . run ( ( xmlOut ) => {
163167 const parser = new XMLParser ( {
164- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
168+ // Added ignoreAttributes to allow fast-xml-parser to return description.
169+ ignoreAttributes : false ,
165170 attributeNamePrefix : '' ,
166171 } ) ;
167- let result = parser . parse ( xmlOut ) ;
172+ const result = parser . parse ( xmlOut ) ;
168173 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
169174 expect ( result . myscript . sql . tablepriv . success ) . to . include ( '+++ success' ) ;
170175 const { data } = result . myscript . sql . tablepriv . row [ 0 ] ;
@@ -190,10 +195,11 @@ describe('iSql Functional Tests', function () {
190195 connection . add ( sql . toXML ( ) ) ;
191196 connection . run ( ( xmlOut ) => {
192197 const parser = new XMLParser ( {
193- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
198+ // Added ignoreAttributes to allow fast-xml-parser to return description.
199+ ignoreAttributes : false ,
194200 attributeNamePrefix : '' ,
195201 } ) ;
196- let result = parser . parse ( xmlOut ) ;
202+ const result = parser . parse ( xmlOut ) ;
197203 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
198204 expect ( result . myscript . sql . columns . success ) . to . include ( '+++ success' ) ;
199205 const { data } = result . myscript . sql . columns . row ;
@@ -231,10 +237,11 @@ describe('iSql Functional Tests', function () {
231237 connection . add ( sql . toXML ( ) ) ;
232238 connection . run ( ( xmlOut ) => {
233239 const parser = new XMLParser ( {
234- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
240+ // Added ignoreAttributes to allow fast-xml-parser to return description.
241+ ignoreAttributes : false ,
235242 attributeNamePrefix : '' ,
236243 } ) ;
237- let result = parser . parse ( xmlOut ) ;
244+ const result = parser . parse ( xmlOut ) ;
238245 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
239246 expect ( result . myscript . sql . columnpriv . success ) . to . include ( '+++ success' ) ;
240247 const { data } = result . myscript . sql . columnpriv . row [ 0 ] ;
@@ -261,10 +268,11 @@ describe('iSql Functional Tests', function () {
261268 connection . add ( sql . toXML ( ) ) ;
262269 connection . run ( ( xmlOut ) => {
263270 const parser = new XMLParser ( {
264- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
271+ // Added ignoreAttributes to allow fast-xml-parser to return description.
272+ ignoreAttributes : false ,
265273 attributeNamePrefix : '' ,
266274 } ) ;
267- let result = parser . parse ( xmlOut ) ;
275+ const result = parser . parse ( xmlOut ) ;
268276 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
269277 expect ( result . myscript . sql . procedures . success ) . to . include ( '+++ success' ) ;
270278 const { data } = result . myscript . sql . procedures . row ;
@@ -291,10 +299,11 @@ describe('iSql Functional Tests', function () {
291299 connection . add ( sql . toXML ( ) ) ;
292300 connection . run ( ( xmlOut ) => {
293301 const parser = new XMLParser ( {
294- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
302+ // Added ignoreAttributes to allow fast-xml-parser to return description.
303+ ignoreAttributes : false ,
295304 attributeNamePrefix : '' ,
296305 } ) ;
297- let result = parser . parse ( xmlOut ) ;
306+ const result = parser . parse ( xmlOut ) ;
298307 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
299308 expect ( result . myscript . sql . pcolumns . success ) . to . include ( '+++ success' ) ;
300309 const { data } = result . myscript . sql . pcolumns . row ;
@@ -332,10 +341,11 @@ describe('iSql Functional Tests', function () {
332341 connection . add ( sql . toXML ( ) ) ;
333342 connection . run ( ( xmlOut ) => {
334343 const parser = new XMLParser ( {
335- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
344+ // Added ignoreAttributes to allow fast-xml-parser to return description.
345+ ignoreAttributes : false ,
336346 attributeNamePrefix : '' ,
337347 } ) ;
338- let result = parser . parse ( xmlOut ) ;
348+ const result = parser . parse ( xmlOut ) ;
339349 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
340350 expect ( result . myscript . sql . primarykeys . success ) . to . include ( '+++ success' ) ;
341351 const { data } = result . myscript . sql . primarykeys . row [ 0 ] ;
@@ -361,10 +371,11 @@ describe('iSql Functional Tests', function () {
361371 connection . add ( sql . toXML ( ) ) ;
362372 connection . run ( ( xmlOut ) => {
363373 const parser = new XMLParser ( {
364- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
374+ // Added ignoreAttributes to allow fast-xml-parser to return description.
375+ ignoreAttributes : false ,
365376 attributeNamePrefix : '' ,
366377 } ) ;
367- let result = parser . parse ( xmlOut ) ;
378+ const result = parser . parse ( xmlOut ) ;
368379 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
369380 expect ( result . myscript . sql . foreignkeys . success ) . to . include ( '+++ success' ) ;
370381 const { data } = result . myscript . sql . foreignkeys . row ;
@@ -397,10 +408,11 @@ describe('iSql Functional Tests', function () {
397408 connection . add ( sql . toXML ( ) ) ;
398409 connection . run ( ( xmlOut ) => {
399410 const parser = new XMLParser ( {
400- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
411+ // Added ignoreAttributes to allow fast-xml-parser to return description.
412+ ignoreAttributes : false ,
401413 attributeNamePrefix : '' ,
402414 } ) ;
403- let result = parser . parse ( xmlOut ) ;
415+ const result = parser . parse ( xmlOut ) ;
404416 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
405417 expect ( result . myscript . sql . statistics . success ) . to . include ( '+++ success' ) ;
406418 const { data } = result . myscript . sql . statistics . row ;
@@ -436,10 +448,11 @@ describe('iSql Functional Tests', function () {
436448 connection . debug ( true ) ;
437449 connection . run ( ( xmlOut ) => {
438450 const parser = new XMLParser ( {
439- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
451+ // Added ignoreAttributes to allow fast-xml-parser to return description.
452+ ignoreAttributes : false ,
440453 attributeNamePrefix : '' ,
441454 } ) ;
442- let result = parser . parse ( xmlOut ) ;
455+ const result = parser . parse ( xmlOut ) ;
443456 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
444457 // TODO add more assertions
445458 expect ( result ) . to . be . an ( 'object' ) ;
@@ -464,10 +477,11 @@ describe('iSql Functional Tests', function () {
464477 connection . add ( sql . toXML ( ) ) ;
465478 connection . run ( ( xmlOut ) => {
466479 const parser = new XMLParser ( {
467- ignoreAttributes : false , // Added ignoreAttributes to allow fast-xml-parser to return description.
480+ // Added ignoreAttributes to allow fast-xml-parser to return description.
481+ ignoreAttributes : false ,
468482 attributeNamePrefix : '' ,
469483 } ) ;
470- let result = parser . parse ( xmlOut ) ;
484+ const result = parser . parse ( xmlOut ) ;
471485 expect ( Object . keys ( result ) . length ) . gt ( 0 ) ;
472486 const sqlNode = result . myscript . sql ;
473487 expect ( sqlNode . query . success ) . to . include ( '+++ success' ) ;
0 commit comments