ButtonGroups.spec.js 608 B

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