Skip to content

test: add unit tests for cursor package - #1120

Open
beltagyy wants to merge 2 commits into
charmbracelet:mainfrom
beltagyy:test/cursor-package
Open

test: add unit tests for cursor package#1120
beltagyy wants to merge 2 commits into
charmbracelet:mainfrom
beltagyy:test/cursor-package

Conversation

@beltagyy

Copy link
Copy Markdown

Adds basic unit test coverage for the cursor modes map to verify all supported cursor modes are present.\n\n- Tests that 'blink', 'hide', and 'static' keys exist\n- Tests that an unknown key returns false

Add table-driven tests exercising horizontal joins, vertical joins,
and all documented alignment values (left, center, right, top, bottom,
middle). The join command currently has no test coverage, yet the
Run() path is deterministic and testable with only lipgloss as a
dependency.

This gives us fast feedback on regressions in either the option parsing
or the alignment string-to-Position mapping.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant