test: restore and fix unit tests
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import Vue from 'vue'
|
||||
import { shallowMount, mount } from '@vue/test-utils'
|
||||
import CoreuiVue from '@coreui/vue'
|
||||
import Carousels from '@/views/base/Carousels'
|
||||
|
||||
Vue.use(CoreuiVue)
|
||||
|
||||
describe('Carousels.vue', () => {
|
||||
it('has a name', () => {
|
||||
expect(Carousels.name).toMatch('carousels')
|
||||
})
|
||||
it('is Carousels', () => {
|
||||
const wrapper = shallowMount(Carousels)
|
||||
expect(wrapper.is(Carousels)).toBe(true)
|
||||
})
|
||||
test('renders correctly', () => {
|
||||
const wrapper = mount(Carousels)
|
||||
expect(wrapper.element).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user