[ChangePassword] Implement disabled property

This commit is contained in:
Robert Schäfer 2019-03-13 17:56:55 +01:00
parent a900435d58
commit 51a1678a38
2 changed files with 22 additions and 2 deletions

View File

@ -21,14 +21,23 @@ describe('ChangePassword.vue', () => {
}) })
describe('shallowMount', () => { describe('shallowMount', () => {
let wrapper
const Wrapper = () => { const Wrapper = () => {
return shallowMount(ChangePassword, { mocks, localVue }) return shallowMount(ChangePassword, { mocks, localVue })
} }
it.todo('renders') beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper.is('div')).toBe(true)
})
describe('validations', () => { describe('validations', () => {
it.todo('is disabled') it('invalid', () => {
expect(wrapper.vm.disabled).toBe(true)
})
describe('old password and new password', () => { describe('old password and new password', () => {
describe('match', () => { describe('match', () => {

View File

@ -1,2 +1,13 @@
<template> <template>
</template> </template>
<script>
export default {
name: 'Modal',
data() {
return {
disabled: true
}
}
}
</script>