Skip to content

Commit 4e4a21a

Browse files
authored
test: fix failing test suite (#1166)
1 parent 120736f commit 4e4a21a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/client/app/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { dataSymbol, initData } from './data'
1616
import { Content } from './components/Content'
1717
import { ClientOnly } from './components/ClientOnly'
1818

19-
export const NotFound = Theme.NotFound || (() => '404 Not Found')
19+
const NotFound = Theme.NotFound || (() => '404 Not Found')
2020

2121
const VitePressApp = {
2222
name: 'VitePressApp',

src/client/theme-default/components/VPContent.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { useRoute, useData } from 'vitepress'
33
import { useCopyCode } from '../composables/copy-code'
44
import { useSidebar } from '../composables/sidebar'
5-
import { NotFound } from '../../app'
5+
import Theme from '/@theme/index'
66
import VPPage from './VPPage.vue'
77
import VPHome from './VPHome.vue'
88
import VPDoc from './VPDoc.vue'
@@ -11,6 +11,8 @@ const route = useRoute()
1111
const { frontmatter } = useData()
1212
const { hasSidebar } = useSidebar()
1313
14+
const NotFound = Theme.NotFound || (() => '404 Not Found')
15+
1416
useCopyCode()
1517
</script>
1618

0 commit comments

Comments
 (0)