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

feat: support naming assertions to help describe their purpose #19

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

arikkfir
Copy link
Owner

This change adds a new "Ensure(string)" function to the "Verifier" interface. This method will apply a description to the current verifier which will be prepended to potential failures, should those happen.

Usage:

With(t).Ensure("my feature should yield a popup").Verify(...)...

This change adds a new "Ensure(string)" function to the "Verifier"
interface. This method will apply a description to the current verifier
which will be prepended to potential failures, should those happen.

Usage:

    With(t).Ensure("my feature should yield a popup").Verify(...)...
@arikkfir arikkfir added the feature New features and functionality label Jun 10, 2024
@arikkfir arikkfir self-assigned this Jun 10, 2024
@arikkfir arikkfir merged commit 345aeae into main Jun 10, 2024
4 checks passed
@arikkfir arikkfir deleted the arikkfir/improve-readability-with-naming branch June 10, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features and functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant