Ocelot-Social/webapp/pages/_static.spec.js
Moriz Wahl a15351aa42
feat(webapp): dynamic static pages (#8920)
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-09-25 11:16:07 +02:00

39 lines
750 B
JavaScript

import { mount } from '@vue/test-utils'
import Static from './_static.vue'
const localVue = global.localVue
describe('_static', () => {
let wrapper
describe('mount', () => {
const Wrapper = (page) => {
return mount(Static, {
mocks: {
$t: jest.fn(),
},
data() {
return {
pageParams: {
internalPage: {
hasContainer: true,
hasBaseCard: true,
hasLoginInHeader: true,
},
},
}
},
localVue,
})
}
beforeEach(async () => {
wrapper = await Wrapper('faq')
})
it('renders', () => {
expect(wrapper.element).toMatchSnapshot()
})
})
})