CoreUIIcons.spec.js 559 B

1234567891011121314151617181920
  1. import Vue from 'vue'
  2. import { shallowMount } from '@vue/test-utils'
  3. import CoreuiVue from '@coreui/vue'
  4. import CoreUIIcons from '@/views/icons/CoreUIIcons'
  5. Vue.use(CoreuiVue)
  6. describe('CoreUIIcons.vue', () => {
  7. it('has a name', () => {
  8. expect(CoreUIIcons.name).toBe('CoreUIIcons')
  9. })
  10. it('is Vue instance', () => {
  11. const wrapper = shallowMount(CoreUIIcons)
  12. expect(wrapper.vm).toBeTruthy()
  13. })
  14. it('is CoreUIIcons', () => {
  15. const wrapper = shallowMount(CoreUIIcons)
  16. expect(wrapper.findComponent(CoreUIIcons)).toBeTruthy()
  17. })
  18. })