Skip to content

Commit 5853d1b

Browse files
committed
add test
1 parent 696c037 commit 5853d1b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

packages/kit/src/core/sync/create_manifest_data/index.spec.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,11 @@ test('creates routes with named layouts', () => {
494494
{ component: 'samples/named-layouts/b/c/c2/+page@.svelte', parent_id: '' }, // 11
495495
{ component: 'samples/named-layouts/b/d/(special)/+page.svelte' }, // 12
496496
{ component: 'samples/named-layouts/b/d/(special)/(extraspecial)/d2/+page.svelte' }, // 13
497-
{ component: 'samples/named-layouts/b/d/d1/+page.svelte' } // 14
497+
{
498+
component: 'samples/named-layouts/b/d/(special)/(extraspecial)/d3/+page@(special).svelte',
499+
parent_id: '(special)'
500+
}, // 14
501+
{ component: 'samples/named-layouts/b/d/d1/+page.svelte' } // 15
498502
]);
499503

500504
assert.equal(routes.filter((route) => route.page).map(simplify_route), [
@@ -521,7 +525,7 @@ test('creates routes with named layouts', () => {
521525
{
522526
id: 'b/d/d1',
523527
pattern: '/^/b/d/d1/?$/',
524-
page: { layouts: [0], errors: [1], leaf: 14 }
528+
page: { layouts: [0], errors: [1], leaf: 15 }
525529
},
526530
{
527531
id: '(special)/(alsospecial)/b/c/c1',
@@ -532,6 +536,11 @@ test('creates routes with named layouts', () => {
532536
id: 'b/d/(special)/(extraspecial)/d2',
533537
pattern: '/^/b/d/d2/?$/',
534538
page: { layouts: [0, 6, 7], errors: [1, undefined, undefined], leaf: 13 }
539+
},
540+
{
541+
id: 'b/d/(special)/(extraspecial)/d3',
542+
pattern: '/^/b/d/d3/?$/',
543+
page: { layouts: [0, 6], errors: [1, undefined], leaf: 14 }
535544
}
536545
]);
537546
});

packages/kit/src/core/sync/create_manifest_data/test/samples/named-layouts/b/d/(special)/(extraspecial)/d3/+page@(special).svelte

Whitespace-only changes.

0 commit comments

Comments
 (0)