From 5d79437dafbeb03d7c94068970e49101032f261e Mon Sep 17 00:00:00 2001 From: mptyl Date: Sun, 28 Jun 2026 16:29:01 +0200 Subject: [PATCH] fix(frontend): read MSW request body once in SettingsDialog test (pristine output) Co-Authored-By: Claude Opus 4.8 --- frontend/src/shell/SettingsDialog.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/shell/SettingsDialog.test.tsx b/frontend/src/shell/SettingsDialog.test.tsx index 86ea5b27..2b33e75c 100644 --- a/frontend/src/shell/SettingsDialog.test.tsx +++ b/frontend/src/shell/SettingsDialog.test.tsx @@ -65,7 +65,7 @@ test("Salva PUTs the selected settings", async () => { server.use( http.put("http://localhost:8787/settings", async ({ request }) => { body = await request.json(); - return HttpResponse.json(await request.json()); + return HttpResponse.json(body); }), ); renderDialog();