@@ -144,23 +144,23 @@ describe('DateTime', () => {
144
144
describe ( 'writeValue' , ( ) => {
145
145
146
146
it ( 'should updateText with default MMM D, YYYY when no displayFormat or pickerFormat' , zoned ( ( ) => {
147
- datetime . ngAfterViewInit ( ) ;
147
+ datetime . ngAfterContentInit ( ) ;
148
148
datetime . writeValue ( '1994-12-15T13:47:20.789Z' ) ;
149
149
150
150
expect ( datetime . _text ) . toEqual ( 'Dec 15, 1994' ) ;
151
151
} ) ) ;
152
152
153
153
it ( 'should updateText with pickerFormat when no displayFormat' , zoned ( ( ) => {
154
154
datetime . pickerFormat = 'YYYY' ;
155
- datetime . ngAfterViewInit ( ) ;
155
+ datetime . ngAfterContentInit ( ) ;
156
156
datetime . writeValue ( '1994-12-15T13:47:20.789Z' ) ;
157
157
158
158
expect ( datetime . _text ) . toEqual ( '1994' ) ;
159
159
} ) ) ;
160
160
161
161
it ( 'should updateText with displayFormat when no pickerFormat' , zoned ( ( ) => {
162
162
datetime . displayFormat = 'YYYY' ;
163
- datetime . ngAfterViewInit ( ) ;
163
+ datetime . ngAfterContentInit ( ) ;
164
164
datetime . writeValue ( '1994-12-15T13:47:20.789Z' ) ;
165
165
166
166
expect ( datetime . _text ) . toEqual ( '1994' ) ;
@@ -172,7 +172,7 @@ describe('DateTime', () => {
172
172
173
173
it ( 'should generate with default MMM D, YYYY when no displayFormat or pickerFormat' , zoned ( ( ) => {
174
174
datetime . monthShortNames = customLocale . monthShortNames ;
175
- datetime . ngAfterViewInit ( ) ;
175
+ datetime . ngAfterContentInit ( ) ;
176
176
datetime . setValue ( '1994-12-15T13:47:20.789Z' ) ;
177
177
178
178
datetime . generate ( ) ;
@@ -186,7 +186,7 @@ describe('DateTime', () => {
186
186
187
187
it ( 'should generate with only displayFormat' , zoned ( ( ) => {
188
188
datetime . monthShortNames = customLocale . monthShortNames ;
189
- datetime . ngAfterViewInit ( ) ;
189
+ datetime . ngAfterContentInit ( ) ;
190
190
datetime . displayFormat = 'YYYY' ;
191
191
datetime . setValue ( '1994-12-15T13:47:20.789Z' ) ;
192
192
@@ -199,7 +199,7 @@ describe('DateTime', () => {
199
199
200
200
it ( 'should generate with only pickerFormat' , zoned ( ( ) => {
201
201
datetime . monthShortNames = customLocale . monthShortNames ;
202
- datetime . ngAfterViewInit ( ) ;
202
+ datetime . ngAfterContentInit ( ) ;
203
203
datetime . pickerFormat = 'YYYY' ;
204
204
datetime . setValue ( '1994-12-15T13:47:20.789Z' ) ;
205
205
@@ -212,7 +212,7 @@ describe('DateTime', () => {
212
212
213
213
it ( 'should generate with custom locale short month names from input property' , zoned ( ( ) => {
214
214
datetime . monthShortNames = customLocale . monthShortNames ;
215
- datetime . ngAfterViewInit ( ) ;
215
+ datetime . ngAfterContentInit ( ) ;
216
216
datetime . pickerFormat = 'MMM YYYY' ;
217
217
datetime . setValue ( '1994-12-15T13:47:20.789Z' ) ;
218
218
@@ -227,7 +227,7 @@ describe('DateTime', () => {
227
227
228
228
it ( 'should generate with custom locale full month names from input property' , zoned ( ( ) => {
229
229
datetime . monthNames = customLocale . monthNames ;
230
- datetime . ngAfterViewInit ( ) ;
230
+ datetime . ngAfterContentInit ( ) ;
231
231
datetime . pickerFormat = 'MMMM YYYY' ;
232
232
datetime . setValue ( '1994-12-15T13:47:20.789Z' ) ;
233
233
0 commit comments