Skip to content

Commit

Permalink
Fix test, empty string evals to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
natclamp-moj committed Jan 27, 2025
1 parent b34ea5b commit f510088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moj/components/sortable-table/sortable-table.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ describe("sortable table", () => {
const ascValues = Array.from(ascCells).map(cell => cell.textContent.trim());
// Values converted to numbers in getCellValue function for comparison

expect(ascValues).toEqual(['1NearlyTallest', '1Tallest', 'KiliJ89', '']);
expect(ascValues).toEqual(['', '1NearlyTallest', '1Tallest', 'KiliJ89']);
expect(nicknameHeaderButton.parentElement).toHaveAttribute('aria-sort', 'ascending');
});

Expand Down

0 comments on commit f510088

Please sign in to comment.