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(offline): count the trip member the v2 case stores

Maurice9c39a0fc581e
diff --git a/client/tests/unit/db/offlineDb.upgrade.test.ts b/client/tests/unit/db/offlineDb.upgrade.test.ts
index 9d93f35f3..cf2069838 100644
--- a/client/tests/unit/db/offlineDb.upgrade.test.ts
+++ b/client/tests/unit/db/offlineDb.upgrade.test.ts
@@ -211,7 +211,7 @@ const UPGRADE_CASES: Record<number, UpgradeCase> = {
intent: 'adds accommodations, trip members, tags and categories',
check: async (db) => {
await db.table('tripMembers').put({ tripId: 2, id: 7, username: 'ana' });
- expect(await db.tripMembers.where('tripId').equals(1).count()).toBe(1);
+ expect(await db.tripMembers.where('tripId').equals(2).count()).toBe(1);
expect(await db.tripMembers.get([2, 7])).toMatchObject({ username: 'ana' });
},
},