This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -763,16 +763,16 @@ describe('ngOptions', function() {
763
763
scope . selected = scope . values [ 1 ] ;
764
764
scope . $digest ( ) ;
765
765
766
- expect ( options [ 1 ] . getAttribute ( 'selected' ) ) . toBe ( null ) ;
766
+ expect ( options [ 1 ] . hasAttribute ( 'selected' ) ) . toBe ( false ) ;
767
767
expect ( options [ 2 ] . getAttribute ( 'selected' ) ) . toBe ( 'selected' ) ;
768
768
769
769
scope . selected = 'no match' ;
770
770
scope . $digest ( ) ;
771
771
772
772
expect ( options [ 0 ] . selected ) . toBe ( true ) ;
773
773
expect ( options [ 0 ] . getAttribute ( 'selected' ) ) . toBe ( 'selected' ) ;
774
- expect ( options [ 1 ] . getAttribute ( 'selected' ) ) . toBe ( null ) ;
775
- expect ( options [ 2 ] . getAttribute ( 'selected' ) ) . toBe ( null ) ;
774
+ expect ( options [ 1 ] . hasAttribute ( 'selected' ) ) . toBe ( false ) ;
775
+ expect ( options [ 2 ] . hasAttribute ( 'selected' ) ) . toBe ( false ) ;
776
776
} ) ;
777
777
778
778
describe ( 'disableWhen expression' , function ( ) {
@@ -1445,7 +1445,7 @@ describe('ngOptions', function() {
1445
1445
expect ( options [ 0 ] . selected ) . toBe ( true ) ;
1446
1446
expect ( options [ 0 ] . getAttribute ( 'selected' ) ) . toBe ( 'selected' ) ;
1447
1447
expect ( options [ 2 ] . selected ) . toBe ( false ) ;
1448
- expect ( options [ 2 ] . getAttribute ( 'selected' ) ) . toBe ( null ) ;
1448
+ expect ( options [ 2 ] . hasAttribute ( 'selected' ) ) . toBe ( false ) ;
1449
1449
} ) ;
1450
1450
1451
1451
} ) ;
You can’t perform that action at this time.
0 commit comments