Skip to content

Commit ba881bf

Browse files
committed
Fix linting errors
1 parent 6e271d6 commit ba881bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/nodes.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

test/nodes.spec.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)