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