mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
21 lines
546 B
Plaintext
21 lines
546 B
Plaintext
import { mount } from '@vue/test-utils'
|
|
import { describe, it, expect } from 'vitest'
|
|
|
|
import TopMenu from '#components/menu/TopMenu.vue'
|
|
|
|
import PageShell from './PageShell.vue'
|
|
|
|
describe('PageShell', () => {
|
|
const wrapper = mount(PageShell, {
|
|
slots: {
|
|
default: 'Page Content',
|
|
},
|
|
})
|
|
|
|
it('renders page content', () => {
|
|
expect(wrapper.find('.v-application').exists()).toBeTruthy()
|
|
expect(wrapper.find('.v-application').findComponent(TopMenu)).toBeTruthy()
|
|
expect(wrapper.html()).toContain('Page Content')
|
|
})
|
|
})
|