tests: add some issing tests

This commit is contained in:
xidedix
2018-08-20 16:37:33 +02:00
parent 87e783e692
commit ea01f937b2
45 changed files with 1141 additions and 17 deletions
+24
View File
@@ -0,0 +1,24 @@
import Vue from 'vue'
import { shallowMount } from '@vue/test-utils'
import BootstrapVue from 'bootstrap-vue'
import Page404 from '@/views/Pages/Page404'
Vue.use(BootstrapVue)
describe('Page404.vue', () => {
it('has a name', () => {
expect(Page404.name).toMatch('Page404')
})
it('is Vue instance', () => {
const wrapper = shallowMount(Page404)
expect(wrapper.isVueInstance()).toBe(true)
})
it('is Page500', () => {
const wrapper = shallowMount(Page404)
expect(wrapper.is(Page404)).toBe(true)
})
it('should render correct content', () => {
const wrapper = shallowMount(Page404)
expect(wrapper.find('h1').text()).toMatch('404')
})
})