Write a test for reseting all form data after updateContribution

This commit is contained in:
Wolfgang Huß 2022-07-26 10:51:57 +02:00
parent 5ff0de7b4f
commit 37a255ffea

View File

@ -277,6 +277,13 @@ describe('Community', () => {
fetchPolicy: 'network-only',
})
})
it('set all data to the default values)', () => {
expect(wrapper.vm.form.id).toBe(null)
expect(wrapper.vm.form.date).toBe('')
expect(wrapper.vm.form.memo).toBe('')
expect(wrapper.vm.form.amount).toBe('')
})
})
describe('with error', () => {