Skip to content

Commit b318376

Browse files
committed
fix weird rendering bug
1 parent 682b3d1 commit b318376

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

render/common.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ func renderTestHeader(header string, spinner spinner.Model, isFinished bool, isS
3333
box := borderBox.Render(fmt.Sprintf(" %s ", cmdStr))
3434
sliced := strings.Split(box, "\n")
3535
sliced[2] = strings.Replace(sliced[2], "─", "┬", 1)
36-
return strings.Join(sliced, "\n")
36+
return strings.Join(sliced, "\n") + "\n"
3737
}
3838

3939
func renderTests(tests []testModel, spinner string) string {
4040
var str string
4141
for _, test := range tests {
4242
testStr := renderTest(test.text, spinner, test.finished, nil, test.passed)
43-
testStr = fmt.Sprintf("%s%s", " ", testStr)
43+
testStr = fmt.Sprintf(" %s", testStr)
4444

4545
edges := " ├─"
4646
for i := 0; i < lipgloss.Height(testStr)-1; i++ {
4747
edges += "\n │ "
4848
}
49-
testStr = lipgloss.JoinHorizontal(lipgloss.Top, edges, testStr)
50-
str = lipgloss.JoinVertical(lipgloss.Left, str, testStr)
49+
str += lipgloss.JoinHorizontal(lipgloss.Top, edges, testStr)
50+
str += "\n"
5151
}
5252
str += "\n"
5353
return str

0 commit comments

Comments
 (0)