@@ -296,7 +296,7 @@ describe('browser', function() {
296
296
browser . url ( 'http://new.org' ) ;
297
297
298
298
expect ( pushState ) . toHaveBeenCalledOnce ( ) ;
299
- expect ( pushState . calls . argsFor ( 0 ) [ 2 ] ) . toEqual ( 'http://new.org' ) ;
299
+ expect ( pushState . calls . argsFor ( 0 ) [ 2 ] ) . toEqual ( 'http://new.org/ ' ) ;
300
300
301
301
expect ( replaceState ) . not . toHaveBeenCalled ( ) ;
302
302
expect ( locationReplace ) . not . toHaveBeenCalled ( ) ;
@@ -308,7 +308,7 @@ describe('browser', function() {
308
308
browser . url ( 'http://new.org' , true ) ;
309
309
310
310
expect ( replaceState ) . toHaveBeenCalledOnce ( ) ;
311
- expect ( replaceState . calls . argsFor ( 0 ) [ 2 ] ) . toEqual ( 'http://new.org' ) ;
311
+ expect ( replaceState . calls . argsFor ( 0 ) [ 2 ] ) . toEqual ( 'http://new.org/ ' ) ;
312
312
313
313
expect ( pushState ) . not . toHaveBeenCalled ( ) ;
314
314
expect ( locationReplace ) . not . toHaveBeenCalled ( ) ;
@@ -319,7 +319,7 @@ describe('browser', function() {
319
319
sniffer . history = false ;
320
320
browser . url ( 'http://new.org' ) ;
321
321
322
- expect ( fakeWindow . location . href ) . toEqual ( 'http://new.org' ) ;
322
+ expect ( fakeWindow . location . href ) . toEqual ( 'http://new.org/ ' ) ;
323
323
324
324
expect ( pushState ) . not . toHaveBeenCalled ( ) ;
325
325
expect ( replaceState ) . not . toHaveBeenCalled ( ) ;
@@ -352,7 +352,7 @@ describe('browser', function() {
352
352
sniffer . history = false ;
353
353
browser . url ( 'http://new.org' , true ) ;
354
354
355
- expect ( locationReplace ) . toHaveBeenCalledWith ( 'http://new.org' ) ;
355
+ expect ( locationReplace ) . toHaveBeenCalledWith ( 'http://new.org/ ' ) ;
356
356
357
357
expect ( pushState ) . not . toHaveBeenCalled ( ) ;
358
358
expect ( replaceState ) . not . toHaveBeenCalled ( ) ;
@@ -945,7 +945,7 @@ describe('browser', function() {
945
945
it ( 'should not interfere with legacy browser url replace behavior' , function ( ) {
946
946
inject ( function ( $rootScope ) {
947
947
var current = fakeWindow . location . href ;
948
- var newUrl = 'notyet' ;
948
+ var newUrl = 'http:// notyet/ ' ;
949
949
sniffer . history = false ;
950
950
expect ( historyEntriesLength ) . toBe ( 1 ) ;
951
951
browser . url ( newUrl , true ) ;
0 commit comments