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