Update frontend/src/components/ContributionMessages/ContributionMessagesFormular.spec.js

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
This commit is contained in:
Alexander Friedland 2022-08-30 12:13:47 +02:00 committed by GitHub
parent e4862bd9a8
commit ff6cc7eb28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,15 +41,16 @@ describe('ContributionMessagesFormular', () => {
})
describe('call onReset', () => {
it('form has the set data', () => {
beforeEach(() => {
wrapper.setData({
form: {
text: 'text form message',
},
})
wrapper.vm.onReset()
beforeEach(() => {
wrapper.setData({
form: {
text: 'text form message',
},
})
wrapper.vm.onReset()
})
it('form has the set data', () => {
expect(wrapper.vm.form).toEqual({
text: '',
})