fix(forms): remove deprecated forms APIs (#10624)
BREAKING CHANGE: The deprecated forms APIs in @angular/common have been removed. Please update to the new forms API in @angular/forms. See angular.io for more information.
This commit is contained in:
@ -431,8 +431,8 @@ export function main() {
|
||||
fixture.detectChanges();
|
||||
tick();
|
||||
|
||||
form.find('login').valueChanges.subscribe(
|
||||
() => { expect(form.find('login').dirty).toBe(true); });
|
||||
form.get('login').valueChanges.subscribe(
|
||||
() => { expect(form.get('login').dirty).toBe(true); });
|
||||
|
||||
const loginEl = fixture.debugElement.query(By.css('input')).nativeElement;
|
||||
loginEl.value = 'newValue';
|
||||
@ -460,10 +460,10 @@ export function main() {
|
||||
loginEl.value = 'newValue';
|
||||
dispatchEvent(loginEl, 'input');
|
||||
|
||||
expect(form.find('login').pristine).toBe(false);
|
||||
expect(form.get('login').pristine).toBe(false);
|
||||
|
||||
form.find('login').valueChanges.subscribe(
|
||||
() => { expect(form.find('login').pristine).toBe(true); });
|
||||
form.get('login').valueChanges.subscribe(
|
||||
() => { expect(form.get('login').pristine).toBe(true); });
|
||||
|
||||
dispatchEvent(formEl, 'reset');
|
||||
});
|
||||
|
Reference in New Issue
Block a user