From ee921d5c28b87e6cd62c739dd84a12cc8bfc8668 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 8 Oct 2026 15:59:03 +0200 Subject: [PATCH] test(offline): name the v6 upgrade case for what v6 does Version 6 only adds the driving settings store; dropping the area cache is version 7. The case name claimed both, so it now names only the new store and a comment explains where the empty area cache it still checks comes from. --- client/tests/unit/db/offlineDb.upgrade.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/tests/unit/db/offlineDb.upgrade.test.ts b/client/tests/unit/db/offlineDb.upgrade.test.ts index bdb45ce88..9d93f35f3 100644 --- a/client/tests/unit/db/offlineDb.upgrade.test.ts +++ b/client/tests/unit/db/offlineDb.upgrade.test.ts @@ -238,10 +238,11 @@ const UPGRADE_CASES: Record = { }, }, 6: { - intent: 'adds the driving settings and drops the area cache that predates per-trip keys', + intent: 'adds the driving settings', check: async (db) => { await db.table('roadtripPreferences').put({ tripId: 2, preferences: {} }); expect(await db.roadtripPreferences.count()).toBe(1); + // The empty area cache comes from v7 and v8 on the way to the current version. expect(await db.areaPlaces.count()).toBe(0); expect(await db.syncMeta.get(1)).not.toHaveProperty('areaPlacesKey'); },