Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for NavigationBar #450

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

jaywardell
Copy link
Contributor

I added a few methods on String in the test target that make searching for html tags and attributes simpler (in a testing environment only, these obviously aren't robust enough for general work)

Using these methods, I added tests for the structure of the output of NavigationBar as well as for the various parameters that can be applied to NavigationBar.

I had to make one change to NavigationBar.Width, making it Sendable so that it can be parameterized in the tests.

idk, maybe the String extensions should be in a separate PR, but I thought that providing an example of their usefulness would be appropriate. Please advise

Joseph Wardell added 3 commits January 31, 2025 10:32
…tain html tag or attribute is in a String.

These aren't appropriate for general use, but should work fine for testing purposes
@twostraws
Copy link
Owner

Thank you!

@twostraws twostraws merged commit 80b2ad3 into twostraws:main Feb 5, 2025
1 check passed
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.

2 participants