Flags.spec.js 505 B

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