From fad0b6f50ed09ad9c1126676cb439ad35d12e6ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 10 Mar 2026 07:38:02 +0800 Subject: [PATCH] Assign getter access to variable to avoid bare expression statements (S905) Co-Authored-By: Claude Opus 4.6 --- tests/stores/allMapData.test.js | 2 +- tests/stores/conformance.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/stores/allMapData.test.js b/tests/stores/allMapData.test.js index 6075680..bdab44c 100644 --- a/tests/stores/allMapData.test.js +++ b/tests/stores/allMapData.test.js @@ -237,7 +237,7 @@ describe("allMapDataStore", () => { { type: "date", min: originalDate, max: "2023-12-31T23:59:00Z" }, ]; // Access the getter once - store.filterAttrs; + const _accessed = store.filterAttrs; // The original state should still contain the ISO date, not a formatted string expect(store.allFilterAttrs[0].min).toBe(originalDate); }); diff --git a/tests/stores/conformance.test.js b/tests/stores/conformance.test.js index fbef69e..962281b 100644 --- a/tests/stores/conformance.test.js +++ b/tests/stores/conformance.test.js @@ -204,7 +204,7 @@ describe("conformanceStore", () => { attributes: [], }, ]; - store.cases; + const _accessed = store.cases; // Original state should still contain the ISO date expect(store.allCases[0].started_at).toBe(originalDate); });