blob: b5548845a46e86a9441b1b30d20a4840ed379439 [file] [log] [blame]
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();
});
});