test(worktree): assert omitted display name shape

This commit is contained in:
Neil
2026-07-29 00:51:46 -07:00
parent 0336de994e
commit c02e4735ed
@@ -46,6 +46,7 @@ describe('worktree RPC schemas', () => {
const parsed = WorktreeSet.parse({ worktree: 'id:r1::/repos/wt', comment: 'note' })
expect(parsed.displayName).toBeUndefined()
expect(Object.prototype.hasOwnProperty.call(parsed, 'displayName')).toBe(false)
})
it('ignores a non-string display name rather than persisting it', () => {