Ocelot-Social/src/pages/about/Page.test.ts
2024-01-28 12:25:43 +01:00

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()
})
})