mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
test(dashboard): expect the VO2max tile in the default strip count
The VO2max tile is now visible by default, so the configured strip-tile count rises from 7 to 8.
This commit is contained in:
1 parent
3505ffde24
commit
03cb71ab3f
1 file changed
+3
-3
@@ -104,11 +104,11 @@ describe("resolveDashboardFirstPaintGate", () => {
|
||||
|
||||
describe("resolveConfiguredTileCount (v1.16.8)", () => {
|
||||
it("counts only widgets that paint a strip tile, with bp counting double", () => {
|
||||
// Default layout: weight, bp, pulse, bodyFat, mood, bpInTarget are
|
||||
// tile-visible AND tile-capable; medications + recentWorkouts are
|
||||
// Default layout: weight, bp, pulse, bodyFat, mood, bpInTarget, vo2Max
|
||||
// are tile-visible AND tile-capable; medications + recentWorkouts are
|
||||
// tile-visible in the stored layout but paint NO strip tile, so
|
||||
// they must not inflate the silhouette. bp paints sys + dia = 2.
|
||||
expect(resolveConfiguredTileCount(DEFAULT_DASHBOARD_LAYOUT)).toBe(7);
|
||||
expect(resolveConfiguredTileCount(DEFAULT_DASHBOARD_LAYOUT)).toBe(8);
|
||||
});
|
||||
|
||||
it("ignores chart-only and iOS-pin-only widget ids", () => {
|
||||
|
||||
Reference in new issue
Block a user