summaryrefslogtreecommitdiff
path: root/tests/unit/Global/PageContainer.spec.js
blob: 78a3521f500a21ee0193eeff58fe5e316a203a4d (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, createLocalVue } from '@vue/test-utils';
import PageContainer from '@/components/Global/PageContainer';

const localVue = createLocalVue();

describe('PageContainer.vue', () => {
  const wrapper = mount(PageContainer, {
    localVue,
    mocks: {
      $t: (key) => key,
    },
  });
  it('should exist', () => {
    expect(wrapper.exists()).toBe(true);
  });
  it('should render main element', () => {
    expect(wrapper.find('main').exists()).toBe(true);
  });
  it('should render correctly', () => {
    expect(wrapper.element).toMatchSnapshot();
  });
});