Skip to content

Commit

Permalink
test(ui): ensure overflow message works
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Dec 2, 2024
1 parent 0ed05bc commit ab4a8be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/style/style_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ func Test_WithStyles(t *testing.T) {
if render != "World" {
t.Error("Should be World")
}

render = WithOverlay("Overflow the container with additional text which should result in a different message", testStr)
if render != "Resize terminal to see overlay" {
t.Error("Should be empty")
}
}

0 comments on commit ab4a8be

Please sign in to comment.