Files
manja_dev_ui/tests/unit/containers/TheSidebar.spec.js
T
2019-08-10 12:07:10 +02:00

17 lines
428 B
JavaScript

import Vue from 'vue'
import { shallowMount } from '@vue/test-utils';
import CoreuiVue from '@coreui/vue'
import TheSidebar from '@/containers/TheSidebar'
Vue.use(CoreuiVue)
describe('TheSidebar.vue', () => {
it('has a name', () => {
expect(TheSidebar.name).toMatch('TheSidebar')
})
test('renders correctly', () => {
const wrapper = shallowMount(TheSidebar)
expect(wrapper.element).toMatchSnapshot()
})
})