@@ -204,42 +204,3 @@ describe('should normalize clean paths correctly', () => {
204204 } ) ,
205205 )
206206} )
207-
208- describe ( 'should normalize paths with query correctly' , ( ) => {
209- testCases
210- . map ( ( [ [ path , current ] , expected ] ) => [
211- [ `${ path } ?foo=bar` , current ] ,
212- `${ expected } ?foo=bar` ,
213- ] )
214- . forEach ( ( [ [ path , current ] , expected ] ) =>
215- it ( `${ current ? `"${ current } "-` : '' } "${ path } " -> "${ expected } "` , ( ) => {
216- expect ( normalizeRoutePath ( path , current ) ) . toBe ( expected )
217- } ) ,
218- )
219- } )
220-
221- describe ( 'should normalize paths with hash correctly' , ( ) => {
222- testCases
223- . map ( ( [ [ path , current ] , expected ] ) => [
224- [ `${ path } #foobar` , current ] ,
225- `${ expected } #foobar` ,
226- ] )
227- . map ( ( [ [ path , current ] , expected ] ) =>
228- it ( `${ current ? `"${ current } "-` : '' } "${ path } " -> "${ expected } "` , ( ) => {
229- expect ( normalizeRoutePath ( path , current ) ) . toBe ( expected )
230- } ) ,
231- )
232- } )
233-
234- describe ( 'should normalize paths with query and hash correctly' , ( ) => {
235- testCases
236- . map ( ( [ [ path , current ] , expected ] ) => [
237- [ `${ path } ?foo=1&bar=2#foobar` , current ] ,
238- `${ expected } ?foo=1&bar=2#foobar` ,
239- ] )
240- . map ( ( [ [ path , current ] , expected ] ) =>
241- it ( `${ current ? `"${ current } "-` : '' } "${ path } " -> "${ expected } "` , ( ) => {
242- expect ( normalizeRoutePath ( path , current ) ) . toBe ( expected )
243- } ) ,
244- )
245- } )
0 commit comments