Skip to content

Commit

Permalink
adds jsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
shefalijoshi committed Oct 8, 2024
1 parent e56dc64 commit 7bdccdd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/e2e/yamcs/telemetryTables.e2e.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ test.describe("Telemetry Tables tests @yamcs", () => {
expect(await assertTableRowsInOrder(telemTableAsc, 'asc')).toBe(true);
});

/**
* Returns whether a list of timestamp based rows are in asc or desc order
* @param { Node } telemTable Node for telemetry table
* @param { string } order 'asc' or 'desc'
* @returns {Boolean} All table rows are in order
*/
async function assertTableRowsInOrder(telemTable, order) {
let rowsAreInOrder = false;
const allRows = await (await telemTable.getByLabel('Table Row')).all();
Expand Down

0 comments on commit 7bdccdd

Please sign in to comment.