All files / src/app/shared/formly/dev/testing/formly-testing-container formly-testing-container.component.ts

100% Statements 7/7
100% Branches 2/2
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2436x                   36x   75x 75x 75x 75x                
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { FormlyFieldConfig } from '@ngx-formly/core';
 
/* eslint-disable @typescript-eslint/no-explicit-any */
@Component({
  selector: 'ish-formly-testing-container',
  templateUrl: './formly-testing-container.component.html',
  changeDetection: ChangeDetectionStrategy.Default,
})
export class FormlyTestingContainerComponent {
  set testComponentInputs(inputs: { fields: FormlyFieldConfig[]; form: FormGroup; model: any; options?: any }) {
    this.fields = inputs.fields;
    this.form = inputs.form;
    this.model = inputs.model;
    this.options = inputs.options ?? {};
  }
 
  fields: FormlyFieldConfig[];
  form: FormGroup;
  model: any;
  options: any;
}