Files
manja_ui_dev/tests/unit/views/icons/Brands.spec.js
T
2019-08-10 12:07:10 +02:00

27 lines
712 B
JavaScript

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