mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
24 lines
528 B
TypeScript
24 lines
528 B
TypeScript
import { mount } from '@vue/test-utils'
|
|
import { describe, it, expect } from 'vitest'
|
|
import { Component, h } from 'vue'
|
|
import { VApp } from 'vuetify/components'
|
|
|
|
import AboutPage from './+Page.vue'
|
|
import { title } from './+title'
|
|
|
|
describe('AboutPage', () => {
|
|
const wrapper = mount(VApp, {
|
|
slots: {
|
|
default: h(AboutPage as Component),
|
|
},
|
|
})
|
|
|
|
it('title returns correct title', () => {
|
|
expect(title).toBe('DreamMall')
|
|
})
|
|
|
|
it('renders', () => {
|
|
expect(wrapper.element).toMatchSnapshot()
|
|
})
|
|
})
|