mirror of
https://github.com/morluto/rea
synced 2026-10-27 06:33:32 -04:00
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:
@@ -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 });
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user