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,23 @@
import { expect } from 'chai'
import { shallowMount, RouterLinkStub } from '@vue/test-utils'
import SignUpPage from '@/pages/SignUpPage.vue'
describe('SignUpPage.vue Component Test', () => {
let wrapper;
beforeEach(() => {
wrapper = shallowMount(SignUpPage, {
global: {
stubs: {
'router-link': RouterLinkStub
}
}
})
})
it('Mount test', async() => {
expect(wrapper.text()).to.include('Sign Up');
expect(wrapper.text()).to.include('Email Address');
expect(wrapper.text()).to.include('Password');
expect(wrapper.text()).to.include('Already have an account?');
})
})