Add more unit tests and update integration tests

This commit is contained in:
Conor McNamara
2023-03-29 20:24:11 +01:00
parent 70d24a9e26
commit bda8885fa1
10 changed files with 126 additions and 49 deletions

View 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');
})
})