File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ var Path = {
149
149
if ( queryString )
150
150
return Path . withoutQuery ( path ) + '?' + queryString ;
151
151
152
- return Path . withoutQuery ( path ) ;
152
+ return path ;
153
153
} ,
154
154
155
155
/**
Original file line number Diff line number Diff line change @@ -321,10 +321,6 @@ describe('Path.withQuery', function () {
321
321
expect ( Path . withQuery ( '/a/b/c' , { id : 'def' } ) ) . toEqual ( '/a/b/c?id=def' ) ;
322
322
} ) ;
323
323
324
- it ( 'removes query string' , function ( ) {
325
- expect ( Path . withQuery ( '/a/b/c?a=b' , { a : undefined } ) ) . toEqual ( '/a/b/c' ) ;
326
- } ) ;
327
-
328
324
it ( 'merges two query strings' , function ( ) {
329
325
expect ( Path . withQuery ( '/path?a=b' , { c : [ 'd' , 'e' ] } ) ) . toEqual ( '/path?a=b&c%5B0%5D=d&c%5B1%5D=e' ) ;
330
326
} ) ;
You can’t perform that action at this time.
0 commit comments