chore(list): fix v2 errors

This commit is contained in:
Christian Rocha
2024-10-23 22:10:46 -04:00
parent 89f2eef648
commit c0611f6c76
4 changed files with 98 additions and 58 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func TestGradient(t *testing.T) {
expLast := strings.Split(sb.String(), AnsiReset)[0]
for _, width := range []int{3, 5, 50} {
p.Width = width
p.SetWidth(width)
res := p.ViewAs(1.0)
// extract colors from the progrss bar by splitting at p.Full+AnsiReset, leaving us with just the color sequences