MCPcopy
hub / github.com/angular/angular / checkProperties

Function checkProperties

packages/forms/test/directives_spec.ts:564–580  ·  view source on GitHub ↗
(control: FormControl)

Source from the content-addressed store, hash-verified

562 let controlDir: FormControlDirective;
563 let control: FormControl;
564 const checkProperties = function (control: FormControl) {
565 expect(controlDir.control).toBe(control);
566 expect(controlDir.value).toBe(control.value);
567 expect(controlDir.valid).toBe(control.valid);
568 expect(controlDir.invalid).toBe(control.invalid);
569 expect(controlDir.pending).toBe(control.pending);
570 expect(controlDir.errors).toBe(control.errors);
571 expect(controlDir.pristine).toBe(control.pristine);
572 expect(controlDir.dirty).toBe(control.dirty);
573 expect(controlDir.touched).toBe(control.touched);
574 expect(controlDir.untouched).toBe(control.untouched);
575 expect(controlDir.statusChanges).toBe(control.statusChanges);
576 expect(controlDir.status).toBe(control.status);
577 expect(controlDir.valueChanges).toBe(control.valueChanges);
578 expect(controlDir.disabled).toBe(control.disabled);
579 expect(controlDir.enabled).toBe(control.enabled);
580 };
581
582 beforeEach(() => {
583 controlDir = new FormControlDirective([Validators.required], [], [defaultAccessor], null);

Callers 1

directives_spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…