Ed Tanous | 7d6b44c | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 1 | import { mount } from '@vue/test-utils'; |
Derick Montague | 383184c | 2020-12-01 12:30:19 -0600 | [diff] [blame] | 2 | import PageSection from '@/components/Global/PageSection'; |
| 3 | |
Derick Montague | 383184c | 2020-12-01 12:30:19 -0600 | [diff] [blame] | 4 | describe('PageSection.vue', () => { |
| 5 | const wrapper = mount(PageSection, { |
Derick Montague | 383184c | 2020-12-01 12:30:19 -0600 | [diff] [blame] | 6 | 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 | }); |