Skip to content

Commit 0221b16

Browse files
committed
test(core): mapper pin control carries the body's required keys (#23488)
Claude-Session: https://claude.ai/code/session_01LFqdRsuM5nkqoJdHd5ztVk Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1361ff6 commit 0221b16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/core/src/security/permission-set-row-definition.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ describe('permissionSetDefinitionFromRow', () => {
157157
// CONTROL: the identical scope with the keys left in is refused by the
158158
// door's schema at the retired key — so the drop above is what makes the
159159
// body acceptable, not something else in it.
160-
const kept = { name: 'emea_admin', adminScope: { businessUnit: 'emea', manageBindings: false } };
160+
const kept = { ...permissionSetDefinitionFromRow({ name: 'emea_admin' }), adminScope: { businessUnit: 'emea', manageBindings: false } };
161161
const refused = PermissionSetSchema.safeParse(kept);
162162
expect(refused.success).toBe(false);
163163
expect(refused.error?.issues.map((i) => i.path)).toEqual([['adminScope', 'manageBindings']]);

0 commit comments

Comments
 (0)