fix: poll dashboard duplicate cleanup between status updates
This commit is contained in:
@@ -4,6 +4,7 @@ import type { UsageRow } from './dashboard-usage-rows.js';
|
||||
import {
|
||||
buildWebUsageRowsForSnapshot,
|
||||
formatStatusHeader,
|
||||
getDashboardDuplicateCleanupIntervalMs,
|
||||
renderUsageTable,
|
||||
shouldPurgeDashboardChannelOnStart,
|
||||
summarizeWatcherTasks,
|
||||
@@ -82,6 +83,13 @@ describe('shouldPurgeDashboardChannelOnStart', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('getDashboardDuplicateCleanupIntervalMs', () => {
|
||||
it('polls duplicate cleanup faster than the status update interval', () => {
|
||||
expect(getDashboardDuplicateCleanupIntervalMs(10_000)).toBe(2_000);
|
||||
expect(getDashboardDuplicateCleanupIntervalMs(1_000)).toBe(1_000);
|
||||
});
|
||||
});
|
||||
|
||||
describe('renderUsageTable', () => {
|
||||
const claudeRow: UsageRow = {
|
||||
name: 'Claude pro',
|
||||
|
||||
Reference in New Issue
Block a user