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

[testing] [utils] Add a matchesUUIDFormat() function #33

Open
joelalejandro opened this issue Aug 24, 2019 · 0 comments
Open

[testing] [utils] Add a matchesUUIDFormat() function #33

joelalejandro opened this issue Aug 24, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers module: utils testing

Comments

@joelalejandro
Copy link
Member

joelalejandro commented Aug 24, 2019

Tests will usually check that some classes implement an identifier that matches a UUID format.

To avoid repeating the regex required for it all over the place, we'll add a function to check if a string matches this regex:

/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/
@joelalejandro joelalejandro added enhancement New feature or request testing module: utils good first issue Good for newcomers labels Aug 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers module: utils testing
Projects
None yet
Development

No branches or pull requests

1 participant