Skip to content

Commit 344aeb8

Browse files
committed
test(platform-objects): pin sys_identity_email's shape against sys_email
Claude-Session: https://claude.ai/code/session_016CvQEdxxYYVa8C8AjKZBtL Co-authored-by: Claude <noreply@anthropic.com>
1 parent eda859a commit 344aeb8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/platform-objects/src/audit/sys-identity-email.object.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ describe('sys_identity_email — the identity-mail sibling of sys_email', () =>
2222

2323
it('opts out of the injected organization column; sys_email keeps it', () => {
2424
expect(SysIdentityEmail.systemFields).toEqual({ tenant: false });
25-
expect(SysEmail.systemFields?.tenant).not.toBe(false);
25+
// Non-vacuity: the tenant log does not opt out (neither `false` nor `{ tenant: false }`).
26+
const tenantLog = SysEmail.systemFields;
27+
expect(tenantLog === false || (typeof tenantLog === 'object' && tenantLog.tenant === false)).toBe(false);
2628
expect(Object.keys(SysIdentityEmail.fields)).not.toContain('organization_id');
2729
});
2830

0 commit comments

Comments
 (0)