charmbracelet / bubbles

TUI components for Bubble Tea 🫧
MIT License
5.56k stars 264 forks source link

test(table): improve table unit tests #601

Open Broderick-Westrope opened 2 months ago

Broderick-Westrope commented 2 months ago

This PR seeks to add unit tests for the table component as requested in https://github.com/charmbracelet/bubbles/issues/593. The hope is that the table bubble will be as thoroughly tested as the lipgloss table.

Tests have been added to address these issues:

Tests written specifically for issues will be failing until the issue is fixed (in a separate PR). Other tests have also been added to improve the general coverage (ie. not in relation to any known issue).

I welcome questions relating to this PR. I think this is a great platform for clarifying the expected/desired behaviour of the table component.