@@ -33,6 +33,20 @@ import { EmailEditorValidationComponent } from '../../../..//shared/form-editor-
3333import { NumberDirective } from '../../../../shared/directives/number.directive' ;
3434import { MinValidatorDirective } from '../../../../shared/validators/minValidator' ;
3535import { MaxValidatorDirective } from '../../../../shared/validators/maxValidator' ;
36+ import { CurrencyComponent } from '../../../..//shared/form-components/concrete/currency/currency.component' ;
37+ import { CurrencyEditorDisplayComponent } from '../../../..//shared/form-editor-components/concrete/currency-editor/display/currency-editor-display.component' ;
38+ import { CurrencyEditorDataComponent } from '../../../..//shared/form-editor-components/concrete/currency-editor/data/currency-editor-data.component' ;
39+ import { CurrencyEditorValidationComponent } from '../../../..//shared/form-editor-components/concrete/currency-editor/validation/currency-editor-validation.component' ;
40+ import { DateTimeComponent } from '../../../..//shared/form-components/concrete/date-time/date-time.component' ;
41+ import { DateTimeEditorDisplayComponent } from '../../../..//shared/form-editor-components/concrete/date-time-editor/display/date-time-editor-display.component' ;
42+ import { DateTimeEditorDataComponent } from '../../../..//shared/form-editor-components/concrete/date-time-editor/data/date-time-editor-data.component' ;
43+ import { DateTimeEditorValidationComponent } from '../../../..//shared/form-editor-components/concrete/date-time-editor/validation/date-time-editor-validation.component' ;
44+ import { PhoneNumberComponent } from '../../../..//shared/form-components/concrete/phone-number/phone-number.component' ;
45+ import { PhoneNumberEditorDisplayComponent } from '../../../..//shared/form-editor-components/concrete/phone-number-editor/display/phone-number-editor-display.component' ;
46+ import { PhoneNumberEditorDataComponent } from '../../../..//shared/form-editor-components/concrete/phone-number-editor/data/phone-number-editor-data.component' ;
47+ import { PhoneNumberEditorValidationComponent } from '../../../..//shared/form-editor-components/concrete/phone-number-editor/validation/phone-number-editor-validation.component' ;
48+ import { PhoneNumberDirective } from '../../../../shared/directives/phone-number.directive' ;
49+ import { AngularMyDatePickerModule } from 'angular-mydatepicker' ;
3650
3751describe ( 'FieldEditorComponent' , ( ) => {
3852 let component : FieldEditorComponent ;
@@ -67,11 +81,25 @@ describe('FieldEditorComponent', () => {
6781 EmailComponent ,
6882 EmailEditorDisplayComponent ,
6983 EmailEditorDataComponent ,
70- EmailEditorValidationComponent
84+ EmailEditorValidationComponent ,
85+ CurrencyComponent ,
86+ CurrencyEditorDisplayComponent ,
87+ CurrencyEditorDataComponent ,
88+ CurrencyEditorValidationComponent ,
89+ DateTimeComponent ,
90+ DateTimeEditorDisplayComponent ,
91+ DateTimeEditorDataComponent ,
92+ DateTimeEditorValidationComponent ,
93+ PhoneNumberComponent ,
94+ PhoneNumberEditorDisplayComponent ,
95+ PhoneNumberEditorDataComponent ,
96+ PhoneNumberEditorValidationComponent ,
97+ PhoneNumberDirective
7198 ] ,
7299 imports : [
73100 FormsModule ,
74- HttpClientModule
101+ HttpClientModule ,
102+ AngularMyDatePickerModule
75103 ] ,
76104 schemas : [
77105 CUSTOM_ELEMENTS_SCHEMA
@@ -105,7 +133,19 @@ describe('FieldEditorComponent', () => {
105133 EmailComponent ,
106134 EmailEditorDisplayComponent ,
107135 EmailEditorDataComponent ,
108- EmailEditorValidationComponent
136+ EmailEditorValidationComponent ,
137+ CurrencyComponent ,
138+ CurrencyEditorDisplayComponent ,
139+ CurrencyEditorDataComponent ,
140+ CurrencyEditorValidationComponent ,
141+ DateTimeComponent ,
142+ DateTimeEditorDisplayComponent ,
143+ DateTimeEditorDataComponent ,
144+ DateTimeEditorValidationComponent ,
145+ PhoneNumberComponent ,
146+ PhoneNumberEditorDisplayComponent ,
147+ PhoneNumberEditorDataComponent ,
148+ PhoneNumberEditorValidationComponent
109149 ]
110150 }
111151 } )
@@ -155,4 +195,19 @@ describe('FieldEditorComponent', () => {
155195 component . ngOnInit ( ) ;
156196 expect ( component ) . toBeTruthy ( ) ;
157197 } ) ;
198+ it ( 'should create with Currency component' , ( ) => {
199+ component . field = new CurrencyComponent ( ) ;
200+ component . ngOnInit ( ) ;
201+ expect ( component ) . toBeTruthy ( ) ;
202+ } ) ;
203+ it ( 'should create with Datetime component' , ( ) => {
204+ component . field = new DateTimeComponent ( ) ;
205+ component . ngOnInit ( ) ;
206+ expect ( component ) . toBeTruthy ( ) ;
207+ } ) ;
208+ it ( 'should create with PhoneNumber component' , ( ) => {
209+ component . field = new PhoneNumberComponent ( ) ;
210+ component . ngOnInit ( ) ;
211+ expect ( component ) . toBeTruthy ( ) ;
212+ } ) ;
158213} ) ;
0 commit comments