Follow-up to #1098. formats/jqplot/resources/ext.srf.jqplot.chart.bar.js currently has 0% node-qunit coverage (69 statement lines), now visible thanks to the nyc include-glob fix in #1095.
Important: this file has never been covered by tests, so it cannot be assumed the code is currently bug-free. Do not write tests that simply assert today's behavior — verify each assertion against the code's actual logic (and the SRF documentation where applicable). If you find suspicious or clearly incorrect behavior while writing tests, report it as a bug (or file a separate issue) rather than writing a test that locks it in as "correct".
Steps
- Add a node-qunit test file under
tests/node-qunit/ exercising formats/jqplot/resources/ext.srf.jqplot.chart.bar.js's public entry points (mirror the require()-and-invoke pattern used by existing tests, e.g. ext.srf.formats.gallery.*.test.js or ext.srf.formats.tagcloud.test.js).
- Run
npm run test-coverage (or make ci-coverage) and confirm coverage for this file increased from 0%.
- Run
npm run node-qunit to confirm no regressions in the rest of the suite.
Follow-up to #1098.
formats/jqplot/resources/ext.srf.jqplot.chart.bar.jscurrently has 0% node-qunit coverage (69 statement lines), now visible thanks to the nyc include-glob fix in #1095.Important: this file has never been covered by tests, so it cannot be assumed the code is currently bug-free. Do not write tests that simply assert today's behavior — verify each assertion against the code's actual logic (and the SRF documentation where applicable). If you find suspicious or clearly incorrect behavior while writing tests, report it as a bug (or file a separate issue) rather than writing a test that locks it in as "correct".
Steps
tests/node-qunit/exercisingformats/jqplot/resources/ext.srf.jqplot.chart.bar.js's public entry points (mirror therequire()-and-invoke pattern used by existing tests, e.g.ext.srf.formats.gallery.*.test.jsorext.srf.formats.tagcloud.test.js).npm run test-coverage(ormake ci-coverage) and confirm coverage for this file increased from 0%.npm run node-qunitto confirm no regressions in the rest of the suite.