File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
js/ext/angular/test/directive Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,23 +51,23 @@ describe('Ionic View', function() {
51
51
function backButton ( ) {
52
52
return angular . element ( element [ 0 ] . querySelector ( '.back-button' ) ) ;
53
53
} ;
54
- expect ( backButton ( ) . hasClass ( 'opacity- hide' ) ) . toEqual ( true ) ;
54
+ expect ( backButton ( ) . hasClass ( 'hide' ) ) . toEqual ( true ) ;
55
55
56
56
scope . $broadcast ( 'viewState.showBackButton' , false ) ;
57
57
scope . $apply ( ) ;
58
- expect ( backButton ( ) . hasClass ( 'opacity- hide' ) ) . toEqual ( true ) ;
58
+ expect ( backButton ( ) . hasClass ( 'hide' ) ) . toEqual ( true ) ;
59
59
60
60
scope . $broadcast ( 'viewState.showBackButton' , true ) ;
61
61
scope . $apply ( ) ;
62
- expect ( backButton ( ) . hasClass ( 'opacity- hide' ) ) . toEqual ( false ) ;
62
+ expect ( backButton ( ) . hasClass ( 'hide' ) ) . toEqual ( false ) ;
63
63
64
64
scope . $broadcast ( '$viewHistory.historyChange' , { showBack : false } ) ;
65
65
scope . $apply ( ) ;
66
- expect ( backButton ( ) . hasClass ( 'opacity- hide' ) ) . toEqual ( true ) ;
66
+ expect ( backButton ( ) . hasClass ( 'hide' ) ) . toEqual ( true ) ;
67
67
68
68
scope . $broadcast ( '$viewHistory.historyChange' , { showBack : true } ) ;
69
69
scope . $apply ( ) ;
70
- expect ( backButton ( ) . hasClass ( 'opacity- hide' ) ) . toEqual ( false ) ;
70
+ expect ( backButton ( ) . hasClass ( 'hide' ) ) . toEqual ( false ) ;
71
71
} ) ;
72
72
73
73
it ( 'should show/hide navBar' , function ( ) {
You can’t perform that action at this time.
0 commit comments