test: update snapshots and tests

This commit is contained in:
woothu
2019-10-19 15:29:25 +02:00
parent 452af28957
commit d2e7838db6
38 changed files with 2087 additions and 1959 deletions
+24
View File
@@ -0,0 +1,24 @@
import Vue from 'vue'
import { shallowMount } from '@vue/test-utils';
import CoreuiVue from '@coreui/vue'
import Charts from '@/views/charts/Charts'
Vue.use(CoreuiVue)
describe('Charts.vue', () => {
it('has a name', () => {
expect(Charts.name).toBe('Charts')
})
it('is Vue instance', () => {
const wrapper = shallowMount(Charts)
expect(wrapper.isVueInstance()).toBe(true)
})
it('is Charts', () => {
const wrapper = shallowMount(Charts)
expect(wrapper.is(Charts)).toBe(true)
})
test('renders correctly', () => {
const wrapper = shallowMount(Charts)
expect(wrapper.element).toMatchSnapshot()
})
})