fix(canvas): use string keys for TIER_CONFIG in toHaveProperty test
TS strict mode with noPropertyAccessFromIndexSignature rejects
numeric literal keys on Record<number, ...>. Changed toHaveProperty(1)
→ toHaveProperty("1") to match Vitest's string-keyed API.
Bundles PR #246 fix/canvas-ts-test-errors (liveAnnouncement on
makeStore) so typecheck is clean on this branch.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
1fefc14aa6
commit
deb54b76fc
@ -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", () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user