From f90c888a26d12eb0750319956535cc6767fce525 Mon Sep 17 00:00:00 2001 From: Molecule AI App-FE Date: Mon, 11 May 2026 09:14:27 +0000 Subject: [PATCH] fix(canvas/test): use string keys in TIER_CONFIG toHaveProperty calls Vitest's toHaveProperty is string-keyed; TypeScript strict mode with noPropertyAccessFromIndexSignature rejects numeric literal keys on Record. Co-Authored-By: Claude Opus 4.7 --- canvas/src/lib/__tests__/statusDotClass.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/canvas/src/lib/__tests__/statusDotClass.test.ts b/canvas/src/lib/__tests__/statusDotClass.test.ts index fcf22f98..857d9b3e 100644 --- a/canvas/src/lib/__tests__/statusDotClass.test.ts +++ b/canvas/src/lib/__tests__/statusDotClass.test.ts @@ -55,10 +55,10 @@ describe("statusDotClass", () => { describe("TIER_CONFIG", () => { it("has entries for all four tier levels", () => { - expect(TIER_CONFIG).toHaveProperty(1); - expect(TIER_CONFIG).toHaveProperty(2); - expect(TIER_CONFIG).toHaveProperty(3); - expect(TIER_CONFIG).toHaveProperty(4); + expect(TIER_CONFIG).toHaveProperty("1"); + expect(TIER_CONFIG).toHaveProperty("2"); + expect(TIER_CONFIG).toHaveProperty("3"); + expect(TIER_CONFIG).toHaveProperty("4"); }); it("each tier has label, color, and border fields", () => { -- 2.45.2