This commit is contained in:
2026-09-19 17:02:11 +08:00
parent 4eb17ece4f
commit 514abf6eda
33 changed files with 525 additions and 223 deletions
+2 -1
View File
@@ -119,7 +119,8 @@ test('source contract: uses a native recursive disclosure list without Element m
assert.match(sidebarMenuSource, /const activeParentKeys = computed\(\(\) => new Set\(getNavigationParentKeys\(visibleNavigation\.value, props\.activePath\)\)\)/)
assert.match(sidebarMenuSource, /const openedKeys = ref<ReadonlySet<string>>\(new Set\(activeParentKeys\.value\)\)/)
assert.match(sidebarMenuSource, /openedKeys\.value = new Set\(\[\.\.\.openedKeys\.value, \.\.\.activeParentKeys\.value\]\)/)
assert.match(sidebarMenuSource, /if \(activeParentKeys\.value\.has\(key\)\) return/)
assert.doesNotMatch(sidebarMenuSource, /if \(activeParentKeys\.value\.has\(key\)\) return/)
assert.match(sidebarMenuSource, /if \(next\.has\(key\)\) next\.delete\(key\)/)
assert.match(sidebarMenuSource, /<ul class="client-nav-menu">/)
assert.match(sidebarMenuSource, /:active-path="activePath"/)
assert.match(sidebarMenuSource, /:opened-keys="openedKeys"/)