@@ -120,21 +120,21 @@ describe("UrlRouter", function () {
120
120
121
121
describe ( "location updates" , function ( ) {
122
122
it ( 'can push location changes' , function ( ) {
123
- spyOn ( router . locationService , "url" ) ;
123
+ spyOn ( router . urlService , "url" ) ;
124
124
urlRouter . push ( matcher ( "/hello/:name" ) , { name : "world" } ) ;
125
- expect ( router . locationService . url ) . toHaveBeenCalledWith ( "/hello/world" , undefined ) ;
125
+ expect ( router . urlService . url ) . toHaveBeenCalledWith ( "/hello/world" , undefined ) ;
126
126
} ) ;
127
127
128
128
it ( 'can push a replacement location' , function ( ) {
129
- spyOn ( router . locationService , "url" ) ;
129
+ spyOn ( router . urlService , "url" ) ;
130
130
urlRouter . push ( matcher ( "/hello/:name" ) , { name : "world" } , { replace : true } ) ;
131
- expect ( router . locationService . url ) . toHaveBeenCalledWith ( "/hello/world" , true ) ;
131
+ expect ( router . urlService . url ) . toHaveBeenCalledWith ( "/hello/world" , true ) ;
132
132
} ) ;
133
133
134
134
it ( 'can push location changes with no parameters' , function ( ) {
135
- spyOn ( router . locationService , "url" ) ;
135
+ spyOn ( router . urlService , "url" ) ;
136
136
urlRouter . push ( urlMatcherFactory . compile ( "/hello/:name" , { params : { name : "" } } ) ) ;
137
- expect ( router . locationService . url ) . toHaveBeenCalledWith ( "/hello/" , undefined ) ;
137
+ expect ( router . urlService . url ) . toHaveBeenCalledWith ( "/hello/" , undefined ) ;
138
138
} ) ;
139
139
140
140
it ( 'can push location changes that include a #fragment' , function ( ) {
0 commit comments