refactor: change container component names

This commit is contained in:
woothu
2019-09-23 13:16:03 +02:00
parent 86dd5ebf51
commit 6a61d68c9f
7 changed files with 42 additions and 37 deletions
@@ -0,0 +1,30 @@
import CoreuiVue from '@coreui/vue'
import { shallowMount, createLocalVue } from '@vue/test-utils';
import VueRouter from 'vue-router'
import TheContainer from '@/containers/TheContainer'
const localVue = createLocalVue()
localVue.use(VueRouter)
const router = new VueRouter()
localVue.use(CoreuiVue)
describe('TheContainer.vue', () => {
it('has a name', () => {
expect(TheContainer.name).toMatch('full')
})
test('renders correctly', () => {
const wrapper = shallowMount(TheContainer, {
localVue,
router
})
expect(wrapper.element).toMatchSnapshot()
})
it('is Vue instance', () => {
const wrapper = shallowMount(TheContainer, {
localVue,
router
})
expect(wrapper.isVueInstance()).toBe(true)
})
})