xref: /openbmc/webui-vue/tests/unit/Global/PageContainer.spec.js (revision 7d6b44cb263da09e575c7cb28cab88c1eb339c7b)
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