test: update tests

This commit is contained in:
woothu
2020-07-16 12:31:55 +02:00
parent 7ee3b0f4db
commit a4a0b68f19
41 changed files with 77 additions and 81 deletions
+2 -2
View File
@@ -11,11 +11,11 @@ describe('Login.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Login)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Login', () => {
const wrapper = shallowMount(Login)
expect(wrapper.is(Login)).toBe(true)
expect(wrapper.findComponent(Login)).toBeTruthy()
})
it('should render correct content', () => {
const wrapper = shallowMount(Login)
+2 -2
View File
@@ -11,11 +11,11 @@ describe('Page404.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Page404)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Page500', () => {
const wrapper = shallowMount(Page404)
expect(wrapper.is(Page404)).toBe(true)
expect(wrapper.findComponent(Page404)).toBeTruthy()
})
it('should render correct content', () => {
const wrapper = shallowMount(Page404)
+2 -2
View File
@@ -11,11 +11,11 @@ describe('Page500.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Page500)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Page500', () => {
const wrapper = shallowMount(Page500)
expect(wrapper.is(Page500)).toBe(true)
expect(wrapper.findComponent(Page500)).toBeTruthy()
})
it('should render correct content', () => {
const wrapper = shallowMount(Page500)
+2 -2
View File
@@ -11,11 +11,11 @@ describe('Register.vue', () => {
})
it('is Vue instance', () => {
const wrapper = shallowMount(Register)
expect(wrapper.isVueInstance()).toBe(true)
expect(wrapper.vm).toBeTruthy()
})
it('is Register', () => {
const wrapper = shallowMount(Register)
expect(wrapper.is(Register)).toBe(true)
expect(wrapper.findComponent(Register)).toBeTruthy()
})
it('should render correct content', () => {
const wrapper = shallowMount(Register)