test: update tests
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user