Carousels.spec.js 554 B

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