File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -146,17 +146,15 @@ fdescribe('MdInput', function () {
146146 } ) ) ;
147147
148148 it ( 'supports hint labels attribute' , async ( ( ) => {
149- builder . createAsync ( MdInputHintLabelTestController )
150- . then ( fixture => {
151- fixture . detectChanges ( ) ;
149+ let fixture = TestBed . createComponent ( MdInputHintLabelTestController ) ;
150+ fixture . detectChanges ( ) ;
152151
153- // If the hint label is empty, expect no label.
154- expect ( fixture . debugElement . query ( By . css ( '.md-hint' ) ) ) . toBeNull ( ) ;
152+ // If the hint label is empty, expect no label.
153+ expect ( fixture . debugElement . query ( By . css ( '.md-hint' ) ) ) . toBeNull ( ) ;
155154
156- fixture . componentInstance . label = 'label' ;
157- fixture . detectChanges ( ) ;
158- expect ( fixture . debugElement . query ( By . css ( '.md-hint' ) ) ) . not . toBeNull ( ) ;
159- } ) ;
155+ fixture . componentInstance . label = 'label' ;
156+ fixture . detectChanges ( ) ;
157+ expect ( fixture . debugElement . query ( By . css ( '.md-hint' ) ) ) . not . toBeNull ( ) ;
160158 } ) ) ;
161159
162160 it ( 'supports hint labels elements' , async ( ( ) => {
You can’t perform that action at this time.
0 commit comments