File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ describe("alert", function () {
3232 }
3333
3434 function findCloseButton ( index ) {
35- return element . find ( '.alert button ' ) . eq ( index ) ;
35+ return element . find ( '.close ' ) . eq ( index ) ;
3636 }
3737
3838 it ( "should generate alerts using ng-repeat" , function ( ) {
@@ -64,9 +64,9 @@ describe("alert", function () {
6464 } ) ;
6565
6666 it ( 'should not show close buttons if no close callback specified' , function ( ) {
67- var element = $compile ( '<alert>No close</alert>' ) ( scope ) ;
67+ element = $compile ( '<alert>No close</alert>' ) ( scope ) ;
6868 scope . $digest ( ) ;
69- expect ( findCloseButton ( 0 ) . length ) . toEqual ( 0 ) ;
69+ expect ( findCloseButton ( 0 ) . css ( 'display' ) ) . toBe ( 'none' ) ;
7070 } ) ;
7171
7272 it ( 'it should be possible to add additional classes for alert' , function ( ) {
You can’t perform that action at this time.
0 commit comments