Collapses.spec.js 535 B

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