test: restore and fix unit tests
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import Vue from 'vue'
|
||||
import { mount, 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)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user