node-csvtojson
node-csvtojson copied to clipboard
Added rowIndex to colParser function
Adds another parameter to the custom colParser function callback that exposes the row index being processed. Zero-based. Adds an assert to an existing test to provide coverage.
The unit test for this was not executing correctly, so no assertions would fail under any conditions. I refactored the test to use async/await instead of done() and the test started working as expected.
Issue #373
Pull Request Test Coverage Report for Build 243
- 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage remained the same at 95.421%
| Totals | |
|---|---|
| Change from base Build 238: | 0.0% |
| Covered Lines: | 664 |
| Relevant Lines: | 680 |