Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe("DynamicIonicTextAreaComponent test suite", () => {
let testModel = new DynamicTextAreaModel({id: "textarea"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicIonicTextAreaComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
IonicModule,
TextMaskModule,
list: sfc.autocomplete_list
},
field_config.layout
);
if (sfc.autocomplete_list ||
sfc.autocomplete_url) {
this.autocompleters.push(
new AutoCompleter(this.httpClient, this.error_service,
sfc.autocomplete_list,
sfc.autocomplete_url,
model));
}
return model;
}
case SimpleFieldTypes.TEXTAREA:
return new DynamicTextAreaModel(
{
id: id,
placeholder: label,
required: field_config.required,
disabled: field_config.read_only,
rows: 5,
validators: {
external_validator: {
name: external_validator.name,
args: {id: id, errors: this._external_errors}
},
maxLength: (field_config as TextAreaFieldConfig).max_length,
minLength: (field_config as TextAreaFieldConfig).min_length
},
errorMessages: {
external_error: '{{external_error}}'
describe("DynamicBootstrapTextAreaComponent test suite", () => {
let testModel = new DynamicTextAreaModel({id: "textarea"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicBootstrapTextAreaComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
TextMaskModule,
DynamicFormsCoreModule
list: sfc.autocomplete_list
},
merge_layouts(field_config.layout, extra_layout)
);
if (sfc.autocomplete_list ||
sfc.autocomplete_url) {
this.autocompleters.push(
new AutoCompleter(this.httpClient, this.error_service,
sfc.autocomplete_list,
sfc.autocomplete_url,
model));
}
return model;
}
case SimpleFieldTypes.TEXTAREA:
return new DynamicTextAreaModel(
{
id: id,
placeholder: label,
required: field_config.required,
disabled: field_config.read_only,
rows: 5,
validators: {
external_validator: {
name: external_validator.name,
args: {id: id, errors: this._external_errors}
},
maxLength: (field_config as TextAreaFieldConfig).max_length,
minLength: (field_config as TextAreaFieldConfig).min_length
},
errorMessages: {
external_error: '{{external_error}}'
describe("DynamicFoundationTextAreaComponent test suite", () => {
let testModel = new DynamicTextAreaModel({id: "textarea"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicFoundationTextAreaComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
TextMaskModule,
DynamicFormsCoreModule
describe("DynamicBasicTextAreaComponent test suite", () => {
let testModel = new DynamicTextAreaModel({id: "textarea"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicBasicTextAreaComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
TextMaskModule,
DynamicFormsCoreModule
describe("DynamicNGBootstrapTextAreaComponent test suite", () => {
let testModel = new DynamicTextAreaModel({id: "textarea"}),
formModel = [testModel],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicNGBootstrapTextAreaComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
NoopAnimationsModule,
TextMaskModule,
DynamicFormsCoreModule