Skip to content

Commit 503406e

Browse files
Document package cycle renderer test helpers with JSDoc
1 parent 0bb8724 commit 503406e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎tests/unit/renderer.test.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,11 @@ describe('class relationships to break a package cycle cell rendering', () => {
638638
cycleCount: 1
639639
};
640640

641+
/**
642+
* Builds a minimal report with the supplied class-break entries in one package relationship.
643+
* @param {Array<object|string>} entries - Structured DTOs or legacy labels to render.
644+
* @returns {object} Report fixture for the package relationship table.
645+
*/
641646
function reportWithBreakEntries(entries) {
642647
return {
643648
project: { name: 'Demo', version: '1.0' },
@@ -656,6 +661,11 @@ describe('class relationships to break a package cycle cell rendering', () => {
656661
};
657662
}
658663

664+
/**
665+
* Parses a rendered report and asserts that its package class-break cell exists.
666+
* @param {string} html - Rendered report markup.
667+
* @returns {HTMLTableCellElement} The first package relationship's class-break cell.
668+
*/
659669
function breakCellOf(html) {
660670
const doc = new JSDOM(html).window.document;
661671
const cell = doc.querySelector(

0 commit comments

Comments
 (0)