Replace void with expect().toBeDefined() for getter side-effect access (S3735)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 09:30:45 +08:00
parent af69b6695c
commit ced1ff617a
2 changed files with 3 additions and 3 deletions

View File

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