From 043bf37471fb84739878270aa549049d93e799ec Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 3 Jan 2023 17:19:00 +0100 Subject: [PATCH] fix unit tests for transaction form --- frontend/src/components/GddSend/TransactionForm.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/GddSend/TransactionForm.spec.js b/frontend/src/components/GddSend/TransactionForm.spec.js index 1577660d5..b3745f28b 100644 --- a/frontend/src/components/GddSend/TransactionForm.spec.js +++ b/frontend/src/components/GddSend/TransactionForm.spec.js @@ -77,7 +77,7 @@ describe('TransactionForm', () => { describe('with balance greater 0.00 (100.00) GDD the form is fully enabled', () => { beforeEach(() => { - wrapper.setProps({ balance: '100.0' }) + wrapper.setProps({ balance: 100.0 }) }) it('has no warning message ', () => { @@ -120,7 +120,7 @@ describe('TransactionForm', () => { ) }) - // TODO:SKIPED there is no check that the email being sent to is the same as the user's email. + // TODO:SKIPPED there is no check that the email being sent to is the same as the user's email. it.skip('flushes an error message when email is the email of logged in user', async () => { await wrapper.findAll('div.form-group').at(0).find('input').setValue('user@example.org') await flushPromises() @@ -268,8 +268,8 @@ Die ganze Welt bezwingen.“`) expect(wrapper.find('button[type="reset"]').exists()).toBe(true) }) - it('has the text "form.cancel"', () => { - expect(wrapper.find('button[type="reset"]').text()).toBe('form.cancel') + it('has the text "form.reset"', () => { + expect(wrapper.find('button[type="reset"]').text()).toBe('form.reset') }) it('clears all fields on click', async () => {