test: assert the refused-slug plan has a body before reading it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Edgar Arakelyan
2026-10-26 14:33:24 -07:00
parent 3de21ef5da
commit 9f5191ab0f
@@ -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 });
},
);
});