mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
39 lines
750 B
JavaScript
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()
|
|
})
|
|
})
|
|
})
|