Files
manja_ui_dev/tests/unit/views/buttons/BrandButtons.spec.js
T
2020-07-16 12:31:55 +02:00

25 lines
704 B
JavaScript

import Vue from 'vue'
import { shallowMount, mount } from '@vue/test-utils'
import CoreuiVue from '@coreui/vue'
import BrandButtons from '@/views/buttons/BrandButtons'
Vue.use(CoreuiVue)
describe('BrandButtons.vue', () => {
it('has a name', () => {
expect(BrandButtons.name).toBe('BrandButtons')
})
it('is Vue instance', () => {
const wrapper = shallowMount(BrandButtons)
expect(wrapper.vm).toBeTruthy()
})
it('is BrandButtons', () => {
const wrapper = shallowMount(BrandButtons)
expect(wrapper.findComponent(BrandButtons)).toBeTruthy()
})
test('renders correctly', () => {
const wrapper = mount(BrandButtons)
expect(wrapper.element).toMatchSnapshot()
})
})