Files
manja_ui_dev/tests/unit/views/base/Jumbotrons.spec.js
T
2019-08-27 11:02:15 +02:00

25 lines
682 B
JavaScript

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