File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
packages/kit/src/core/sync/create_manifest_data Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -330,19 +330,21 @@ test('optional parameters', () => {
330330 assert . equal (
331331 nodes
332332 . map ( simplify_node )
333- // for some reason linux and windows have a different order
334- . sort ( ) ,
333+ // for some reason linux and windows have a different order, which is why
334+ // we need sort the nodes using a sort function (doesn't work either without),
335+ // resulting in the following expected node order
336+ . sort ( ( a , b ) => a . component ?. localeCompare ( b . component ?? '' ) ?? 1 ) ,
335337 [
336- default_layout ,
337338 default_error ,
339+ default_layout ,
338340 {
339- component : 'samples/optional/nested/ [[optional]]/sub /+page.svelte'
341+ component : 'samples/optional/[[optional]]/+page.svelte'
340342 } ,
341343 {
342- component : 'samples/optional/prefix[[suffix]] /+page.svelte'
344+ component : 'samples/optional/nested/[[optional]]/sub /+page.svelte'
343345 } ,
344346 {
345- component : 'samples/optional/[[optional ]]/+page.svelte'
347+ component : 'samples/optional/prefix[[suffix ]]/+page.svelte'
346348 }
347349 ]
348350 ) ;
You can’t perform that action at this time.
0 commit comments