charmbracelet / bubbles

TUI components for Bubble Tea 🫧
MIT License
5.35k stars 252 forks source link

test(textarea): Add tests for textarea view #485

Closed mikelorant closed 6 months ago

mikelorant commented 6 months ago

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.

mikelorant commented 6 months ago

@maaslalani @meowgorithm Can we please kick off the workflow checks.

maaslalani commented 6 months ago

@maaslalani @meowgorithm Can we please kick off the workflow checks.

Workflow enabled!

maaslalani commented 6 months ago

@mikelorant, mind rebasing off master to fix the coverage workflow?

maaslalani commented 6 months ago

These tests look great, thank you so much for this PR. I really like the heredoc strings!