Use void operator for getter side-effect access in tests (S1481)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -237,7 +237,7 @@ describe("allMapDataStore", () => {
|
||||
{ type: "date", min: originalDate, max: "2023-12-31T23:59:00Z" },
|
||||
];
|
||||
// Access the getter once
|
||||
const _accessed = store.filterAttrs;
|
||||
void store.filterAttrs;
|
||||
// The original state should still contain the ISO date, not a formatted string
|
||||
expect(store.allFilterAttrs[0].min).toBe(originalDate);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user