Assign getter access to variable to avoid bare expression statements (S905)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 07:38:02 +08:00
parent cb22ce72c1
commit fad0b6f50e
2 changed files with 2 additions and 2 deletions

View File

@@ -237,7 +237,7 @@ describe("allMapDataStore", () => {
{ type: "date", min: originalDate, max: "2023-12-31T23:59:00Z" }, { type: "date", min: originalDate, max: "2023-12-31T23:59:00Z" },
]; ];
// Access the getter once // Access the getter once
store.filterAttrs; const _accessed = store.filterAttrs;
// The original state should still contain the ISO date, not a formatted string // The original state should still contain the ISO date, not a formatted string
expect(store.allFilterAttrs[0].min).toBe(originalDate); expect(store.allFilterAttrs[0].min).toBe(originalDate);
}); });

View File

@@ -204,7 +204,7 @@ describe("conformanceStore", () => {
attributes: [], attributes: [],
}, },
]; ];
store.cases; const _accessed = store.cases;
// Original state should still contain the ISO date // Original state should still contain the ISO date
expect(store.allCases[0].started_at).toBe(originalDate); expect(store.allCases[0].started_at).toBe(originalDate);
}); });