Files
manja_dev_ui/tests/unit/views/base/ListGroups.spec.js
T
2019-09-23 14:53:04 +02:00

25 lines
679 B
JavaScript

import Vue from 'vue'
import { shallowMount } from '@vue/test-utils'
import CoreuiVue from '@coreui/vue'
import ListGroups from '@/views/base/ListGroups'
Vue.use(CoreuiVue)
describe('ListGroups.vue', () => {
it('has a name', () => {
expect(ListGroups.name).toBe('ListGroups')
})
it('is Vue instance', () => {
const wrapper = shallowMount(ListGroups)
expect(wrapper.isVueInstance()).toBe(true)
})
it('is ListGroups', () => {
const wrapper = shallowMount(ListGroups)
expect(wrapper.is(ListGroups)).toBe(true)
})
test('renders correctly', () => {
const wrapper = shallowMount(ListGroups)
expect(wrapper.element).toMatchSnapshot()
})
})