Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(vacay): a day in a year the plan has not opened also announces the new year

Maurice280e55bbc947
diff --git a/server/tests/integration/broadcast-parity/user.cases.ts b/server/tests/integration/broadcast-parity/user.cases.ts
index 2acbed889..88ee0a10c 100644
--- a/server/tests/integration/broadcast-parity/user.cases.ts
+++ b/server/tests/integration/broadcast-parity/user.cases.ts
@@ -602,14 +602,22 @@ const vacayCases: ParityCase[] = [
needs: ['vacay'],
args: () => ({ date: '2027-06-01' }),
rest: { method: 'post', path: () => `${VACAY}/entries/toggle`, body: () => ({ date: '2027-06-01' }) },
- expect: [{ event: 'vacay:update', user: 'actor' }],
+ // 2027 is not a year of the plan yet, so the day opens it too.
+ expect: [
+ { event: 'vacay:settings', user: 'actor' },
+ { event: 'vacay:update', user: 'actor' },
+ ],
},
{
tool: 'toggle_company_holiday',
needs: ['vacay'],
args: () => ({ date: '2027-06-02' }),
rest: { method: 'post', path: () => `${VACAY}/entries/company-holiday`, body: () => ({ date: '2027-06-02' }) },
- expect: [{ event: 'vacay:update', user: 'actor' }],
+ // 2027 is not a year of the plan yet, so the day opens it too.
+ expect: [
+ { event: 'vacay:settings', user: 'actor' },
+ { event: 'vacay:update', user: 'actor' },
+ ],
},
{
tool: 'update_vacay_stats',