test(offline): count the trip member the v2 case stores

This commit is contained in:
Maurice
2026-10-08 20:22:17 +02:00
parent da97d7535f
commit 9c39a0fc58
@@ -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' });
},
},