MCPcopy Create free account
hub / github.com/angular/components / setValue

Function setValue

src/material/datepicker/datepicker.spec.ts:1033–1038  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1031 const subscription = formControl.valueChanges.subscribe(spy);
1032 const inputEl = fixture.debugElement.query(By.css('input'))!.nativeElement;
1033 const setValue = (value: string) => {
1034 inputEl.value = value;
1035 dispatchFakeEvent(inputEl, 'input');
1036 fixture.detectChanges();
1037 fixture.detectChanges();
1038 };
1039
1040 fixture.componentInstance.formControl = formControl;
1041 fixture.changeDetectorRef.markForCheck();

Callers 1

datepicker.spec.tsFile · 0.70

Calls 1

dispatchFakeEventFunction · 0.85

Tested by

no test coverage detected