fix(forms): properly handle special properties in FormGroup.get (#22249)
closes #17195 PR Close #22249
This commit is contained in:
@ -629,6 +629,18 @@ import {of } from 'rxjs';
|
||||
});
|
||||
});
|
||||
|
||||
describe('retrieve', () => {
|
||||
let group: FormGroup;
|
||||
|
||||
beforeEach(() => {
|
||||
group = new FormGroup({
|
||||
'required': new FormControl('requiredValue'),
|
||||
});
|
||||
});
|
||||
|
||||
it('should not get inherited properties',
|
||||
() => { expect(group.get('constructor')).toBe(null); });
|
||||
});
|
||||
|
||||
describe('statusChanges', () => {
|
||||
let control: FormControl;
|
||||
|
Reference in New Issue
Block a user