blob: b5548845a46e86a9441b1b30d20a4840ed379439 [file] [log] [blame]
Ed Tanous7d6b44c2024-03-23 14:56:34 -07001import { mount } from '@vue/test-utils';
Derick Montague383184c2020-12-01 12:30:19 -06002import PageSection from '@/components/Global/PageSection';
3
Derick Montague383184c2020-12-01 12:30:19 -06004describe('PageSection.vue', () => {
5 const wrapper = mount(PageSection, {
Derick Montague383184c2020-12-01 12:30:19 -06006 propsData: {
7 sectionTitle: 'PageSection test title',
8 },
9 mocks: {
10 $t: (key) => key,
11 },
12 });
13 it('should exist', () => {
14 expect(wrapper.exists()).toBe(true);
15 });
16 it('should render h2 element', () => {
17 expect(wrapper.find('h2').exists()).toBe(true);
18 });
19 it('should render correctly', () => {
20 expect(wrapper.element).toMatchSnapshot();
21 });
22});