1
1
/* global LocationHashbangUrl: false, LocationHtml5Url: false */
2
2
'use strict' ;
3
3
4
- describe ( '$location' , function ( ) {
4
+ ddescribe ( '$location' , function ( ) {
5
5
6
6
// Mock out the $log function - see testabilityPatch.js
7
7
beforeEach ( module ( provideLog ) ) ;
@@ -787,7 +787,7 @@ describe('$location', function() {
787
787
788
788
expect ( $browser . url ( ) ) . toEqual ( 'http://server/app/Home' ) ;
789
789
expect ( $location . path ( ) ) . toEqual ( '/Home' ) ;
790
- expect ( $browserUrl . calls . length ) . toEqual ( 3 ) ;
790
+ expect ( $browserUrl . calls . length ) . toEqual ( 1 ) ;
791
791
} ) ;
792
792
} ) ;
793
793
@@ -804,7 +804,7 @@ describe('$location', function() {
804
804
805
805
expect ( $browser . url ( ) ) . toEqual ( 'http://server/app/' ) ;
806
806
expect ( $location . path ( ) ) . toEqual ( '/' ) ;
807
- expect ( $browserUrl . calls . length ) . toEqual ( 2 ) ;
807
+ expect ( $browserUrl . calls . length ) . toEqual ( 0 ) ;
808
808
} ) ;
809
809
} ) ;
810
810
@@ -821,7 +821,7 @@ describe('$location', function() {
821
821
822
822
expect ( $browser . url ( ) ) . toEqual ( 'http://server/app/Home' ) ;
823
823
expect ( $location . path ( ) ) . toEqual ( '/Home' ) ;
824
- expect ( $browserUrl . calls . length ) . toEqual ( 2 ) ;
824
+ expect ( $browserUrl . calls . length ) . toEqual ( 1 ) ;
825
825
} ) ;
826
826
} ) ;
827
827
@@ -838,7 +838,7 @@ describe('$location', function() {
838
838
839
839
expect ( $browser . url ( ) ) . toEqual ( 'http://server/app/' ) ;
840
840
expect ( $location . path ( ) ) . toEqual ( '/' ) ;
841
- expect ( $browserUrl . calls . length ) . toEqual ( 1 ) ;
841
+ expect ( $browserUrl . calls . length ) . toEqual ( 0 ) ;
842
842
} ) ;
843
843
} ) ;
844
844
} ) ;
0 commit comments