File tree 1 file changed +0
-22
lines changed
1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -1406,28 +1406,6 @@ describe('MdSelect', () => {
1406
1406
} ) ;
1407
1407
} ) ) ;
1408
1408
1409
- it ( 'should be considered invalid when there are no selected options' , ( ) => {
1410
- testInstance . isRequired = true ;
1411
- fixture . detectChanges ( ) ;
1412
-
1413
- expect ( testInstance . control . valid ) . toBe ( false , 'Should be invalid when the value is null.' ) ;
1414
-
1415
- trigger . click ( ) ;
1416
- fixture . detectChanges ( ) ;
1417
-
1418
- let option = overlayContainerElement . querySelector ( 'md-option' ) as HTMLElement ;
1419
-
1420
- option . click ( ) ;
1421
- fixture . detectChanges ( ) ;
1422
-
1423
- expect ( testInstance . control . valid ) . toBe ( true , 'Should be valid when the array has items.' ) ;
1424
-
1425
- option . click ( ) ;
1426
- fixture . detectChanges ( ) ;
1427
-
1428
- expect ( testInstance . control . valid ) . toBe ( false , 'Should be invalid when the array is empty.' ) ;
1429
- } ) ;
1430
-
1431
1409
} ) ;
1432
1410
} ) ;
1433
1411
You can’t perform that action at this time.
0 commit comments