Skip to content

Commit

Permalink
Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniessink committed Aug 11, 2022
1 parent f0f2744 commit f40185e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/frontend/src/subject/SubjectTableHeader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ it('shows the column dates and unit', () => {
/>
</Table>
);
[date1.toLocaleDateString(), date2.toLocaleDateString(), "Unit", "Source", "Comment", "Issues", "Tags"].forEach(
[date1.toLocaleDateString(), date2.toLocaleDateString(), "Unit", "Sources", "Comment", "Issues", "Tags"].forEach(
header => expect(screen.getAllByText(header).length).toBe(1)
);
["Trend (7 days)", "Status", "Measurement", "Target"].forEach(
Expand All @@ -35,7 +35,7 @@ it('does not show the column dates', () => {
[date1.toLocaleDateString()].forEach(
header => expect(screen.queryAllByText(header).length).toBe(0)
);
["Trend (7 days)", "Status", "Measurement", "Target", "Unit", "Source", "Comment", "Issues", "Tags"].forEach(
["Trend (7 days)", "Status", "Measurement", "Target", "Unit", "Sources", "Time left", "Comment", "Issues", "Tags"].forEach(
header => expect(screen.queryAllByText(header).length).toBe(1)
);
})
Expand All @@ -50,7 +50,7 @@ it('hides columns', () => {
/>
</Table>
);
["Trend (7 days)", "Status", "Measurement", "Target", "Source", "Comment", "Issues", "Tags"].forEach(
["Trend (7 days)", "Status", "Measurement", "Target", "Sources", "Comment", "Issues", "Tags"].forEach(
header => expect(screen.queryAllByText(header).length).toBe(0)
);
})

0 comments on commit f40185e

Please sign in to comment.