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