From 9f5191ab0f3b9daa2efd74b81c654937629dece2 Mon Sep 17 00:00:00 2001 From: Edgar Arakelyan Date: Mon, 26 Oct 2026 14:33:24 -0700 Subject: [PATCH] test: assert the refused-slug plan has a body before reading it Co-Authored-By: Claude Opus 5.5 --- .../analysisView/environmentStateDerivedWrites.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/domain/analysisView/environmentStateDerivedWrites.test.ts b/src/domain/analysisView/environmentStateDerivedWrites.test.ts index ca62be4877..940c67ade8 100644 --- a/src/domain/analysisView/environmentStateDerivedWrites.test.ts +++ b/src/domain/analysisView/environmentStateDerivedWrites.test.ts @@ -1082,8 +1082,9 @@ describe("slugs the held entities' spellings refuse", () => { expect.objectContaining({ field: "slug", rule: "slug" }), ); // The slug kept as recorded fits only the recorded name. - expect(plan.body.accepted).not.toContain("name"); - expect(plan.body.fixed).toContainEqual({ member: "name", sent: name }); + expect(plan.body).not.toBeNull(); + expect(plan.body?.accepted).not.toContain("name"); + expect(plan.body?.fixed).toContainEqual({ member: "name", sent: name }); }, ); });