Files
manja_ui_dev/tests/unit/views/base/Tables.spec.js
T
2020-07-16 12:31:55 +02:00

25 lines
635 B
JavaScript

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