SurenNeware | 2d9ddc3 | 2020-12-30 19:41:19 +0530 | [diff] [blame] | 1 | import { mount, createLocalVue } from '@vue/test-utils'; |
| 2 | import PageContainer from '@/components/Global/PageContainer'; |
| 3 | |
| 4 | const localVue = createLocalVue(); |
| 5 | |
| 6 | describe('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 | }); |