Skip to content

Commit 9e91668

Browse files
committed
Fix test helper expiresAt default to avoid false expired detection
The buildProposal helper was using current time for expiresAt, which caused existing approved-proposal tests to fail because the client-side expiry fallback detected them as expired.
1 parent a664087 commit 9e91668

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/taskdeck-web/src/tests/views/ReviewView.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ vi.mock('../../composables/useErrorMapper', () => ({
6464

6565
function buildProposal(overrides: Partial<Proposal> = {}): Proposal {
6666
const now = new Date().toISOString()
67+
const futureExpiry = new Date(Date.now() + 86400000).toISOString() // 24h from now
6768
const base: Proposal = {
6869
id: 'proposal-1',
6970
sourceType: 'Queue',
@@ -77,7 +78,7 @@ function buildProposal(overrides: Partial<Proposal> = {}): Proposal {
7778
validationIssues: null,
7879
createdAt: now,
7980
updatedAt: now,
80-
expiresAt: now,
81+
expiresAt: futureExpiry,
8182
decidedAt: null,
8283
decidedByUserId: null,
8384
appliedAt: null,

0 commit comments

Comments
 (0)