feat(library): time to beat, short-games filter and backlog hours

This commit is contained in:
lobo committed 2026-09-24 14:40:41 +02:00
1 parent fd343da4be
commit 91d5672421
11 files changed
+131 -11

No files matched your search

+12
View File
@@ -47,4 +47,16 @@ describe('PileOfShameCard', () => {
expect(screen.getByText('DASHBOARD.BACKLOG_EMPTY')).toBeTruthy();
});
it('shows the backlog hours when IGDB knows some', () => {
renderCard({summary: summary(2, {backlogMinutes: 7440})});
expect(screen.getByText('DASHBOARD.BACKLOG_HOURS')).toBeTruthy();
});
it('hides the backlog hours without data', () => {
renderCard({summary: summary(2, {backlogMinutes: 0})});
expect(screen.queryByText('DASHBOARD.BACKLOG_HOURS')).toBeNull();
});
});