@@ -810,7 +810,7 @@ describe('uiSrefActive', function() {
810810 template = $compile ( el ) ( $rootScope ) ;
811811 $rootScope . $digest ( ) ;
812812
813- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
813+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
814814 $state . transitionTo ( 'contacts.item' , { id : 1 } ) ;
815815 $q . flush ( ) ;
816816 timeoutFlush ( ) ;
@@ -819,15 +819,15 @@ describe('uiSrefActive', function() {
819819 $state . transitionTo ( 'contacts.item' , { id : 2 } ) ;
820820 $q . flush ( ) ;
821821 timeoutFlush ( ) ;
822- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
822+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
823823 } ) ) ;
824824
825825 it ( 'should match state\'s parameters' , inject ( function ( $rootScope , $q , $compile , $state ) {
826826 el = angular . element ( '<div><a ui-sref="contacts.item.detail({ foo: \'bar\' })" ui-sref-active="active">Contacts</a></div>' ) ;
827827 template = $compile ( el ) ( $rootScope ) ;
828828 $rootScope . $digest ( ) ;
829829
830- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
830+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
831831 $state . transitionTo ( 'contacts.item.detail' , { id : 5 , foo : 'bar' } ) ;
832832 $q . flush ( ) ;
833833 timeoutFlush ( ) ;
@@ -836,7 +836,7 @@ describe('uiSrefActive', function() {
836836 $state . transitionTo ( 'contacts.item.detail' , { id : 5 , foo : 'baz' } ) ;
837837 $q . flush ( ) ;
838838 timeoutFlush ( ) ;
839- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
839+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
840840 } ) ) ;
841841
842842
@@ -846,7 +846,7 @@ describe('uiSrefActive', function() {
846846 template = $compile ( el ) ( $rootScope ) ;
847847 $rootScope . $digest ( ) ;
848848
849- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
849+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
850850
851851 $state . transitionTo ( 'arrayparam' , { foo : [ 1 , 2 , 3 ] } ) ;
852852 $q . flush ( ) ;
@@ -861,7 +861,7 @@ describe('uiSrefActive', function() {
861861 $state . transitionTo ( 'arrayparam' , { foo : [ 1 , 2 ] } ) ;
862862 $q . flush ( ) ;
863863 timeoutFlush ( ) ;
864- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
864+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
865865 } ) ) ;
866866
867867 // Test for #3154
@@ -870,7 +870,7 @@ describe('uiSrefActive', function() {
870870 template = $compile ( el ) ( $rootScope ) ;
871871 $rootScope . $digest ( ) ;
872872
873- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
873+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
874874
875875 $state . transitionTo ( 'arrayparam' , { foo : [ 1 , 2 , 3 ] } ) ;
876876 $q . flush ( ) ;
@@ -885,7 +885,7 @@ describe('uiSrefActive', function() {
885885 $state . transitionTo ( 'arrayparam' , { foo : [ 1 , 2 ] } ) ;
886886 $q . flush ( ) ;
887887 timeoutFlush ( ) ;
888- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
888+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
889889 } ) ) ;
890890
891891
@@ -896,7 +896,7 @@ describe('uiSrefActive', function() {
896896 $rootScope . fooId = 'bar'
897897 $rootScope . $digest ( ) ;
898898
899- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
899+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
900900 $state . transitionTo ( 'contacts.item.detail' , { id : 5 , foo : 'bar' } ) ;
901901 $q . flush ( ) ;
902902 timeoutFlush ( ) ;
@@ -905,7 +905,7 @@ describe('uiSrefActive', function() {
905905 $rootScope . fooId = 'baz'
906906 $q . flush ( ) ;
907907 timeoutFlush ( ) ;
908- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
908+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
909909 } ) ) ;
910910
911911 it ( 'should match on child states' , inject ( function ( $rootScope , $q , $compile , $state ) {
@@ -1014,7 +1014,7 @@ describe('uiSrefActive', function() {
10141014 $state . transitionTo ( 'contacts.item' , { id : 1 } ) ;
10151015 $q . flush ( ) ;
10161016 timeoutFlush ( ) ;
1017- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
1017+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
10181018
10191019 $state . transitionTo ( 'contacts.lazy' ) ;
10201020 $q . flush ( ) ;
@@ -1037,7 +1037,7 @@ describe('uiSrefActive', function() {
10371037 $state . transitionTo ( 'contacts.item' , { id : 1 } ) ;
10381038 $q . flush ( ) ;
10391039 timeoutFlush ( ) ;
1040- expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBe ( '' ) ;
1040+ expect ( angular . element ( template [ 0 ] . querySelector ( 'a' ) ) . attr ( 'class' ) ) . toBeFalsy ( ) ;
10411041
10421042 $state . transitionTo ( 'contacts.lazy' ) ;
10431043 $q . flush ( ) ;
0 commit comments