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

Allow chaining of test Validators #3189

Open
AndrewSisley opened this issue Oct 28, 2024 · 0 comments
Open

Allow chaining of test Validators #3189

AndrewSisley opened this issue Oct 28, 2024 · 0 comments
Labels
area/testing Related to any test or testing suite

Comments

@AndrewSisley
Copy link
Contributor

Currently the test Validators are very simple and do not allow chaining e.g.:

"cid": testUtils.AnyOf(
    testUtils.NewUniqueCid("name"),
    testUtils.NewUniqueCid("age"),
)

Modify the interface so that this is possible. Consider following the GomegaMatcher interface, as people seem fairly happy with it, as per this conversation: #3176 (comment)

@AndrewSisley AndrewSisley added the area/testing Related to any test or testing suite label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Related to any test or testing suite
Projects
None yet
Development

No branches or pull requests

1 participant