test: fix failing test suite (#1166)

pull/1167/head
Divyansh Singh 3 years ago committed by GitHub
parent 120736fec1
commit 4e4a21a0ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,7 +16,7 @@ import { dataSymbol, initData } from './data'
import { Content } from './components/Content'
import { ClientOnly } from './components/ClientOnly'
export const NotFound = Theme.NotFound || (() => '404 Not Found')
const NotFound = Theme.NotFound || (() => '404 Not Found')
const VitePressApp = {
name: 'VitePressApp',

@ -2,7 +2,7 @@
import { useRoute, useData } from 'vitepress'
import { useCopyCode } from '../composables/copy-code'
import { useSidebar } from '../composables/sidebar'
import { NotFound } from '../../app'
import Theme from '/@theme/index'
import VPPage from './VPPage.vue'
import VPHome from './VPHome.vue'
import VPDoc from './VPDoc.vue'
@ -11,6 +11,8 @@ const route = useRoute()
const { frontmatter } = useData()
const { hasSidebar } = useSidebar()
const NotFound = Theme.NotFound || (() => '404 Not Found')
useCopyCode()
</script>

Loading…
Cancel
Save