fix tests

This commit is contained in:
Moriz Wahl 2021-08-10 16:19:44 +02:00
parent e695046677
commit f04f05778b
2 changed files with 4 additions and 7 deletions

View File

@ -119,15 +119,15 @@ describe('GddTransactionList', () => {
})
it('shows the message of the transaction', () => {
expect(transaction.findAll('div').at(6).text()).toContain('Alles Gute zum Geburtstag')
expect(transaction.findAll('div').at(5).text()).toContain('Alles Gute zum Geburtstag')
})
it('shows the date of the transaction', () => {
expect(transaction.findAll('div').at(9).text()).toContain('Tue May 25 2021')
expect(transaction.findAll('div').at(8).text()).toContain('Tue May 25 2021')
})
it('shows the decay calculation', () => {
expect(transaction.findAll('div').at(10).text()).toContain('-0.5')
expect(transaction.findAll('div').at(9).text()).toContain('-0.5')
})
})

View File

@ -24,10 +24,7 @@
{{ $t('form.memo') }}
</small>
</div>
<div v-if="date" class="text-sm">
{{ $t('form.date') }}
</div>
<div v-if="decay" class="pt-2">
<div v-if="decay" class="text-sm">
<b-icon v-if="type != 'decay'" icon="droplet-half" height="15" class="mb-3" />
</div>
</div>