ListGroups.spec.js 681 B

123456789101112131415161718192021222324
  1. import Vue from 'vue'
  2. import { shallowMount } from '@vue/test-utils'
  3. import CoreuiVue from '@coreui/vue'
  4. import ListGroups from '@/views/base/ListGroups'
  5. Vue.use(CoreuiVue)
  6. describe('ListGroups.vue', () => {
  7. it('has a name', () => {
  8. expect(ListGroups.name).toBe('ListGroups')
  9. })
  10. it('is Vue instance', () => {
  11. const wrapper = shallowMount(ListGroups)
  12. expect(wrapper.vm).toBeTruthy()
  13. })
  14. it('is ListGroups', () => {
  15. const wrapper = shallowMount(ListGroups)
  16. expect(wrapper.findComponent(ListGroups)).toBeTruthy()
  17. })
  18. test('renders correctly', () => {
  19. const wrapper = shallowMount(ListGroups)
  20. expect(wrapper.element).toMatchSnapshot()
  21. })
  22. })