blob: 78a3521f500a21ee0193eeff58fe5e316a203a4d [file] [log] [blame]
SurenNeware2d9ddc32020-12-30 19:41:19 +05301import { 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});