blob: b5548845a46e86a9441b1b30d20a4840ed379439 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { mount } from '@vue/test-utils';
import PageSection from '@/components/Global/PageSection';
describe('PageSection.vue', () => {
const wrapper = mount(PageSection, {
propsData: {
sectionTitle: 'PageSection test title',
},
mocks: {
$t: (key) => key,
},
});
it('should exist', () => {
expect(wrapper.exists()).toBe(true);
});
it('should render h2 element', () => {
expect(wrapper.find('h2').exists()).toBe(true);
});
it('should render correctly', () => {
expect(wrapper.element).toMatchSnapshot();
});
});
|