Files
manja_dev_ui/tests/unit/views/base/Popovers.spec.js
T
2019-08-27 11:02:15 +02:00

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)
})
})