test: close the two coverage tails on the plan surfaces

The plan unit's same-reference gate for a repeated identical /plan selection
(the one uncovered branch in plan-mode/index.ts) gains an explicit case, and
ui-plan's empty node-half apply is exercised the way sibling surface plugins
do (the ui-conversation no-op precedent). Both files read 100% across all
four axes under the CI coverage lane's per-file thresholds.
This commit is contained in:
imccyu
2026-07-28 21:49:53 +08:00
parent 9be6419cec
commit 76796df39b
2 changed files with 8 additions and 0 deletions

View File

@@ -73,6 +73,9 @@ describe('plan projection unit', () => {
const bench = await harness(true)
runPlanCommand(bench.session, '', 0)
expect(bench.values().plan).toEqual({ active: false, pending: true })
// A repeated identical selection returns the same state reference (no frame).
runPlanCommand(bench.session, '', 1)
expect(bench.values().plan).toEqual({ active: false, pending: true })
commitPlanMode(bench.session, true, 0)
expect(bench.values().plan).toEqual({ active: true, pending: false })
})