File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export abstract class XmlNode {
183183 const nodeSet = XmlXPathObjectStruct . nodesetval ( xpathObj ) ;
184184 const nodeCount = XmlNodeSetStruct . nodeCount ( nodeSet ) ;
185185 const nodeTable = XmlNodeSetStruct . nodeTable ( nodeSet , nodeCount ) ;
186- for ( let i = 0 ; i < nodeCount ; i ++ ) {
186+ for ( let i = 0 ; i < nodeCount ; i += 1 ) {
187187 nodes . push ( this . create ( nodeTable [ i ] ) ) ;
188188 }
189189 }
Original file line number Diff line number Diff line change @@ -218,12 +218,12 @@ describe('XmlNode', () => {
218218
219219 it ( 'should return multiple elements' , ( ) => {
220220 const nodes = doc . find ( 'book/title' ) ;
221- expect ( nodes . map ( node => node . content ) ) . to . deep . equal ( [ 'Harry Potter' , 'Learning XML' ] ) ;
221+ expect ( nodes . map ( ( node ) => node . content ) ) . to . deep . equal ( [ 'Harry Potter' , 'Learning XML' ] ) ;
222222 } ) ;
223223
224224 it ( 'should return multiple attributes' , ( ) => {
225225 const nodes = doc . find ( 'book/title/@author' ) ;
226- expect ( nodes . map ( node => node . content ) ) . to . deep . equal ( [ 'J.K. Rowling' , 'Erik Ray' ] ) ;
226+ expect ( nodes . map ( ( node ) => node . content ) ) . to . deep . equal ( [ 'J.K. Rowling' , 'Erik Ray' ] ) ;
227227 } ) ;
228228 } ) ;
229229} ) ;
You can’t perform that action at this time.
0 commit comments