24 lines
625 B
JavaScript
24 lines
625 B
JavaScript
import Vue from 'vue'
|
|
import { shallowMount } from '@vue/test-utils'
|
|
import CoreuiVue from '@coreui/vue'
|
|
import Popovers from '@/views/base/Popovers'
|
|
|
|
Vue.use(CoreuiVue)
|
|
|
|
describe('Popovers.vue', () => {
|
|
it('has a name', () => {
|
|
expect(Popovers.name).toMatch('popovers')
|
|
})
|
|
it('has a created hook', () => {
|
|
expect(typeof Popovers.data).toMatch('function')
|
|
})
|
|
it('is Vue instance', () => {
|
|
const wrapper = shallowMount(Popovers)
|
|
expect(wrapper.isVueInstance()).toBe(true)
|
|
})
|
|
it('is Popovers', () => {
|
|
const wrapper = shallowMount(Popovers)
|
|
expect(wrapper.is(Popovers)).toBe(true)
|
|
})
|
|
})
|