MCPcopy
hub / github.com/angular/components / assignAndAssert

Function assignAndAssert

src/material/datepicker/date-range-input.spec.ts:656–663  ·  view source on GitHub ↗
(start: Date, end: Date)

Source from the content-addressed store, hash-verified

654
655 it('should preserve the values when assigning both together through ngModel', () => {
656 const assignAndAssert = (start: Date, end: Date) => {
657 fixture.componentInstance.start = start;
658 fixture.componentInstance.end = end;
659 fixture.changeDetectorRef.markForCheck();
660 fixture.detectChanges();
661 expect(fixture.componentInstance.start).toBe(start);
662 expect(fixture.componentInstance.end).toBe(end);
663 };
664
665 const fixture = createComponent(RangePickerNgModel);
666 fixture.detectChanges();

Callers 1

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…