import Vue from 'vue' import { shallowMount, mount } from '@vue/test-utils' import CoreuiVue from '@coreui/vue' import ListGroups from '@/views/base/ListGroups' Vue.use(CoreuiVue) describe('ListGroups.vue', () => { it('has a name', () => { expect(ListGroups.name).toMatch('list-groups') }) it('is Vue instance', () => { const wrapper = shallowMount(ListGroups) expect(wrapper.isVueInstance()).toBe(true) }) it('is ListGroups', () => { const wrapper = shallowMount(ListGroups) expect(wrapper.is(ListGroups)).toBe(true) }) test('renders correctly', () => { const wrapper = shallowMount(ListGroups) expect(wrapper.element).toMatchSnapshot() }) })