Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Feb 4, 2025
1 parent b273cc1 commit 93de0f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewport/viewport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ wide chars: あいうえおafter
Charm热爱开源 • Charm loves open source
`

vt := New(100, 100)
vt := New(WithWidth(100), WithHeight(100))
vt.SetContent(content)

t.Run("first", func(t *testing.T) {
Expand Down Expand Up @@ -538,7 +538,7 @@ Charm热爱开源 • Charm loves open source
func testHighlights(tb testing.TB, content string, re *regexp.Regexp, expect []highlightInfo) {
tb.Helper()

vt := New(100, 100)
vt := New(WithHeight(100), WithWidth(100))
vt.SetContent(content)

matches := re.FindAllStringIndex(vt.GetContent(), -1)
Expand Down

0 comments on commit 93de0f7

Please sign in to comment.