Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(material/chips): prevent unintentional test success (#22920)
In 'MatChipInput' test, `MatInputModule` was not imported and therefore the `matInput` directive was not interpreted. If importing `MatInputModule` into the testing module, the `matInput` directive gets applied and the test 'MatChipInput basic behavior should be aria-required if the list is required' would fail because of side effects by setting the `aria-required` attribute. Obviously, `matInput` does not remove the `aria-required` attribute, while the chips implementation is doing so (chips is interpreting false as null, while `matInput` leaves 'false' as-is).
- Loading branch information