mirror of
https://github.com/morluto/rea.git
synced 2026-10-27 18:05:45 +00: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:
1 parent
3de21ef5da
commit
9f5191ab0f
1 file changed
+3
-2
@@ -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