Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe("DynamicKendoCheckboxComponent test suite", () => {
let testModel = new DynamicCheckboxModel({id: "checkbox"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicKendoCheckboxComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
TextMaskModule,
DynamicFormsCoreModule
name: external_validator.name,
args: {id: id, errors: this._external_errors}
},
min: ffc.min_value,
max: ffc.max_value
},
errorMessages: {
external_error: '{{external_error}}',
min: `Value must be in range ${ffc.min_value} - ${ffc.max_value}`,
max: `Value must be in range ${ffc.min_value} - ${ffc.max_value}`
}
},
field_config.layout
);
case SimpleFieldTypes.BOOLEAN:
return new DynamicCheckboxModel(
{
id: id,
label: label,
required: field_config.required,
disabled: field_config.read_only,
validators: {
external_validator: {
name: external_validator.name,
args: {id: id, errors: this._external_errors}
}
},
errorMessages: {
external_error: '{{external_error}}'
}
},
field_config.layout
name: externalValidator.name,
args: {id, errors: this._externalErrors}
},
min: ffc.minValue,
max: ffc.maxValue
},
errorMessages: {
externalError: '{{externalError}}',
min: `Value must be in range ${ffc.minValue} - ${ffc.maxValue}`,
max: `Value must be in range ${ffc.minValue} - ${ffc.maxValue}`
}
},
mergeLayouts(fieldConfig.layout, extraLayout)
);
case SimpleFieldTypes.BOOLEAN:
return new DynamicCheckboxModel(
{
id,
label,
required: fieldConfig.required,
disabled: fieldConfig.readOnly,
validators: {
externalValidator: {
name: externalValidator.name,
args: {id, errors: this._externalErrors}
}
},
errorMessages: {
externalError: '{{externalError}}'
}
},
mergeLayouts(fieldConfig.layout, extraLayout)
describe("DynamicMaterialCheckboxComponent test suite", () => {
let testModel = new DynamicCheckboxModel({id: "checkbox"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicMaterialCheckboxComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
MatCheckboxModule,
TextMaskModule,
describe("DynamicNGBootstrapCheckboxComponent test suite", () => {
let testModel = new DynamicCheckboxModel({id: "checkbox"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicNGBootstrapCheckboxComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
TextMaskModule,
DynamicFormsCoreModule
describe("DynamicFoundationCheckboxComponent test suite", () => {
let testModel = new DynamicCheckboxModel({id: "checkbox"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicFoundationCheckboxComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
TextMaskModule,
DynamicFormsCoreModule
describe("DynamicBootstrapCheckboxComponent test suite", () => {
let testModel = new DynamicCheckboxModel({id: "checkbox"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicBootstrapCheckboxComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
TextMaskModule,
DynamicFormsCoreModule
describe("DynamicPrimeNGCheckboxComponent test suite", () => {
let testModel = new DynamicCheckboxModel({id: "checkbox"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicPrimeNGCheckboxComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
TextMaskModule,
CheckboxModule,
name: external_validator.name,
args: {id: id, errors: this._external_errors}
},
min: ffc.min_value,
max: ffc.max_value
},
errorMessages: {
external_error: '{{external_error}}',
min: `Value must be in range ${ffc.min_value} - ${ffc.max_value}`,
max: `Value must be in range ${ffc.min_value} - ${ffc.max_value}`
}
},
merge_layouts(field_config.layout, extra_layout)
);
case SimpleFieldTypes.BOOLEAN:
return new DynamicCheckboxModel(
{
id: id,
label: label,
required: field_config.required,
disabled: field_config.read_only,
validators: {
external_validator: {
name: external_validator.name,
args: {id: id, errors: this._external_errors}
}
},
errorMessages: {
external_error: '{{external_error}}'
}
},
merge_layouts(field_config.layout, extra_layout)