Public Access
feat(library): time to beat, short-games filter and backlog hours
This commit is contained in:
1 parent
fd343da4be
commit
91d5672421
11 files changed
+131
-11
No files matched your search
@@ -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();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user