angular/packages/forms/test
Sergej Grilborzer 8dd3f82f94 fix(forms): Correct empty validator to handle objects with a property length: 0. (#33729)
Form required validator should not reject objects that contain a length attribute set to zero.

Fixes #30718.

Co-authored-by: Dylan Hunn <dylhunn@gmail.com>

BREAKING CHANGE: objects with a length key set to zero will no longer validate as empty.

This is technically a breaking change, since objects with a key `length` and value `0` will no longer validate as empty. This is a very minor change, and any reliance on this behavior is probably a bug anyway.

PR Close #33729
2022-02-03 23:15:27 -08:00
..
BUILD.bazel build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
directives_spec.ts test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
form_array_spec.ts feat(forms): support negative indices in FormArray methods. (#44848) 2022-01-28 16:58:29 +00:00
form_builder_spec.ts test(forms): Add more tests for FormBuilder method argument shapes. (#44452) 2021-12-14 16:11:29 -05:00
form_control_spec.ts refactor(forms): Move FormControl to an overridden exported constructor. (#44316) (#44806) 2022-01-31 22:48:23 +00:00
form_group_spec.ts refactor(forms): use shared RuntimeError class (#44398) 2022-01-06 23:43:19 +00:00
reactive_integration_spec.ts refactor(forms): update required validator and checkbox validator to inherit abstractValidator (#44162) 2022-01-24 14:50:57 -08:00
template_integration_spec.ts refactor(forms): update required validator and checkbox validator to inherit abstractValidator (#44162) 2022-01-24 14:50:57 -08:00
util.ts refactor(forms): refactor common validators used in unit tests (#38020) 2020-07-22 20:42:43 -07:00
validators_spec.ts fix(forms): Correct empty validator to handle objects with a property length: 0. (#33729) 2022-02-03 23:15:27 -08:00
value_accessor_integration_spec.ts fix(forms): ensure OnPush ancestors are marked dirty when the promise resolves (#44886) 2022-01-31 21:38:39 +00:00