优化
This commit is contained in:
@@ -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"/)
|
||||
|
||||
Reference in New Issue
Block a user