mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
[ChangePassword] Implement disabled property
This commit is contained in:
parent
a900435d58
commit
51a1678a38
@ -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', () => {
|
||||||
|
|||||||
@ -1,2 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Modal',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
disabled: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user