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 () {
32
32
}
33
33
34
34
function findCloseButton ( index ) {
35
- return element . find ( '.alert button ' ) . eq ( index ) ;
35
+ return element . find ( '.close ' ) . eq ( index ) ;
36
36
}
37
37
38
38
it ( "should generate alerts using ng-repeat" , function ( ) {
@@ -64,9 +64,9 @@ describe("alert", function () {
64
64
} ) ;
65
65
66
66
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 ) ;
68
68
scope . $digest ( ) ;
69
- expect ( findCloseButton ( 0 ) . length ) . toEqual ( 0 ) ;
69
+ expect ( findCloseButton ( 0 ) . css ( 'display' ) ) . toBe ( 'none' ) ;
70
70
} ) ;
71
71
72
72
it ( 'it should be possible to add additional classes for alert' , function ( ) {
You can’t perform that action at this time.
0 commit comments