Add more unit tests and update integration tests
This commit is contained in:
20
tests/unit/404Page.spec.js
Normal file
20
tests/unit/404Page.spec.js
Normal file
@ -0,0 +1,20 @@
|
||||
import { expect } from 'chai'
|
||||
import { shallowMount, RouterLinkStub } from '@vue/test-utils'
|
||||
import page404 from '@/pages/404Page.vue'
|
||||
|
||||
describe('404Page.vue Component Test', () => {
|
||||
let wrapper;
|
||||
beforeEach(() => {
|
||||
wrapper = shallowMount(page404, {
|
||||
global: {
|
||||
stubs: {
|
||||
'router-link': RouterLinkStub
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
it('Mount test', () => {
|
||||
expect(wrapper.text()).to.include('404');
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user