From b514c12365061a0725aeefe00cabd5dadeb06b89 Mon Sep 17 00:00:00 2001 From: MOHITKOURAV01 Date: Mon, 10 Aug 2026 20:27:31 +0530 Subject: [PATCH] chore: drop an unused destructured binding in RouteResults.test.jsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to #672. The mode-fallback case built its fixture with a rest destructure whose `mode` binding was never used, which ESLint flags as no-unused-vars. A shallow copy with the key deleted says the same thing and leaves nothing dangling. Test behaviour is unchanged — 10 passing either way. --- src/components/RouteResults.test.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/RouteResults.test.jsx b/src/components/RouteResults.test.jsx index 542d5fa..0a8776c 100644 --- a/src/components/RouteResults.test.jsx +++ b/src/components/RouteResults.test.jsx @@ -118,7 +118,9 @@ describe('RouteResults - mode label', () => { }); it('falls back to the mode prop when the route does not carry one', () => { - const { mode, ...withoutMode } = measuredRoute; + const withoutMode = { ...measuredRoute }; + delete withoutMode.mode; + render(); expect(screen.getByText('biking')).toBeInTheDocument(); });