Handle formatting errors in onboard renderer

This commit is contained in:
Codex Agent
2025-11-17 11:32:37 -07:00
parent 4e222145ac
commit 070107caee
2 changed files with 111 additions and 32 deletions

View File

@@ -9,7 +9,9 @@ import (
func TestOnboardCommand(t *testing.T) {
t.Run("onboard output contains key sections", func(t *testing.T) {
var buf bytes.Buffer
renderOnboardInstructions(&buf)
if err := renderOnboardInstructions(&buf); err != nil {
t.Fatalf("renderOnboardInstructions() error = %v", err)
}
output := buf.String()
// Verify output contains expected sections