@@ -810,7 +810,7 @@ describe('uiSrefActive', function() {
810
810
template = $compile ( el ) ( $rootScope ) ;
811
811
$rootScope . $digest ( ) ;
812
812
813
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
813
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
814
814
$state . transitionTo ( 'contacts.item' , { id : 1 } ) ;
815
815
$q . flush ( ) ;
816
816
timeoutFlush ( ) ;
@@ -819,15 +819,15 @@ describe('uiSrefActive', function() {
819
819
$state . transitionTo ( 'contacts.item' , { id : 2 } ) ;
820
820
$q . flush ( ) ;
821
821
timeoutFlush ( ) ;
822
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
822
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
823
823
} ) ) ;
824
824
825
825
it ( 'should match state\'s parameters' , inject ( function ( $rootScope , $q , $compile , $state ) {
826
826
el = angular . element ( '<div><a ui-sref="contacts.item.detail({ foo: \'bar\' })" ui-sref-active="active">Contacts</a></div>' ) ;
827
827
template = $compile ( el ) ( $rootScope ) ;
828
828
$rootScope . $digest ( ) ;
829
829
830
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
830
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
831
831
$state . transitionTo ( 'contacts.item.detail' , { id : 5 , foo : 'bar' } ) ;
832
832
$q . flush ( ) ;
833
833
timeoutFlush ( ) ;
@@ -836,7 +836,7 @@ describe('uiSrefActive', function() {
836
836
$state . transitionTo ( 'contacts.item.detail' , { id : 5 , foo : 'baz' } ) ;
837
837
$q . flush ( ) ;
838
838
timeoutFlush ( ) ;
839
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
839
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
840
840
} ) ) ;
841
841
842
842
@@ -846,7 +846,7 @@ describe('uiSrefActive', function() {
846
846
template = $compile ( el ) ( $rootScope ) ;
847
847
$rootScope . $digest ( ) ;
848
848
849
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
849
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
850
850
851
851
$state . transitionTo ( 'arrayparam' , { foo : [ 1 , 2 , 3 ] } ) ;
852
852
$q . flush ( ) ;
@@ -861,7 +861,7 @@ describe('uiSrefActive', function() {
861
861
$state . transitionTo ( 'arrayparam' , { foo : [ 1 , 2 ] } ) ;
862
862
$q . flush ( ) ;
863
863
timeoutFlush ( ) ;
864
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
864
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
865
865
} ) ) ;
866
866
867
867
// Test for #3154
@@ -870,7 +870,7 @@ describe('uiSrefActive', function() {
870
870
template = $compile ( el ) ( $rootScope ) ;
871
871
$rootScope . $digest ( ) ;
872
872
873
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
873
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
874
874
875
875
$state . transitionTo ( 'arrayparam' , { foo : [ 1 , 2 , 3 ] } ) ;
876
876
$q . flush ( ) ;
@@ -885,7 +885,7 @@ describe('uiSrefActive', function() {
885
885
$state . transitionTo ( 'arrayparam' , { foo : [ 1 , 2 ] } ) ;
886
886
$q . flush ( ) ;
887
887
timeoutFlush ( ) ;
888
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
888
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
889
889
} ) ) ;
890
890
891
891
@@ -896,7 +896,7 @@ describe('uiSrefActive', function() {
896
896
$rootScope . fooId = 'bar'
897
897
$rootScope . $digest ( ) ;
898
898
899
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
899
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
900
900
$state . transitionTo ( 'contacts.item.detail' , { id : 5 , foo : 'bar' } ) ;
901
901
$q . flush ( ) ;
902
902
timeoutFlush ( ) ;
@@ -905,7 +905,7 @@ describe('uiSrefActive', function() {
905
905
$rootScope . fooId = 'baz'
906
906
$q . flush ( ) ;
907
907
timeoutFlush ( ) ;
908
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
908
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
909
909
} ) ) ;
910
910
911
911
it ( 'should match on child states' , inject ( function ( $rootScope , $q , $compile , $state ) {
@@ -1014,7 +1014,7 @@ describe('uiSrefActive', function() {
1014
1014
$state . transitionTo ( 'contacts.item' , { id : 1 } ) ;
1015
1015
$q . flush ( ) ;
1016
1016
timeoutFlush ( ) ;
1017
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
1017
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
1018
1018
1019
1019
$state . transitionTo ( 'contacts.lazy' ) ;
1020
1020
$q . flush ( ) ;
@@ -1037,7 +1037,7 @@ describe('uiSrefActive', function() {
1037
1037
$state . transitionTo ( 'contacts.item' , { id : 1 } ) ;
1038
1038
$q . flush ( ) ;
1039
1039
timeoutFlush ( ) ;
1040
- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
1040
+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
1041
1041
1042
1042
$state . transitionTo ( 'contacts.lazy' ) ;
1043
1043
$q . flush ( ) ;
0 commit comments