Add tests for textarea view

Add improved unit tests for textarea view function.

The end of buffer unit test was flawed and failed to properly check
whether the end of buffer character was in the correct location. This
test has been removed as this feature is now verified as part of these
test cases.

Signed-off-by: Michael Lorant <michael.lorant@nine.com.au>
This commit is contained in:
Michael Lorant
2024-02-28 10:49:34 -05:00
committed by Maas Lalani
parent 3f2cd55237
commit e985ec9f15
3 changed files with 227 additions and 8 deletions
+2
View File
@@ -3,6 +3,8 @@ module github.com/charmbracelet/bubbles
go 1.18
require (
github.com/MakeNowJust/heredoc v1.0.0
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
github.com/atotto/clipboard v0.1.4
github.com/charmbracelet/bubbletea v0.25.0
github.com/charmbracelet/harmonica v0.2.0