-
Notifications
You must be signed in to change notification settings - Fork 26.2k
misleading test description in the forms validators spec #21575
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
Comments
Update: @IgorMinar and I discussed offline. Test description should read:
|
I'll do the PR tomorrow but what is the missing test ? |
I don't think there's a missing test. The test description was just confusing because it sounded like it had to do with multiline/single-line regexes instead of "string starts with", etc. It also wasn't clear whether string referred to the test string or the pattern string. |
Ok sorry for that missunderstanding, I'm a better coder than English speaker :D. If we were to provide full coverage of the code we could add 2 tests :
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
angular/packages/forms/test/validators_spec.ts
Lines 274 to 275 in 54bf179
where is the line boundary in the test string? I don't see it. I believe this test shows that we don't match when line boundary is missing - it's a good test but the description is wrong, please correct it.
Can you also add the missing test please?
note: original comment
The text was updated successfully, but these errors were encountered: