mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix admin tests and linting
This commit is contained in:
parent
76f9fe56f0
commit
bdea98ef94
@ -92,7 +92,7 @@ describe('CreationTransactionList', () => {
|
||||
expect(fields[0].key).toBe('createdAt')
|
||||
expect(fields[1].key).toBe('contributionDate')
|
||||
expect(fields[2].key).toBe('confirmedAt')
|
||||
expect(fields[3].key).toBe('status')
|
||||
expect(fields[3].key).toBe('contributionStatus')
|
||||
expect(fields[4].key).toBe('amount')
|
||||
expect(fields[5].key).toBe('memo')
|
||||
})
|
||||
|
||||
@ -34,8 +34,8 @@
|
||||
{{ t('help.transactionlist.confirmed') }}
|
||||
</div>
|
||||
<div>
|
||||
{{ t('transactionlist.contributionStatus') }} {{ t('math.equals') }}
|
||||
{{ t('help.transactionlist.contributionStatus') }}
|
||||
{{ t('transactionlist.status') }} {{ t('math.equals') }}
|
||||
{{ t('help.transactionlist.status') }}
|
||||
</div>
|
||||
</BCollapse>
|
||||
</div>
|
||||
|
||||
@ -19,9 +19,13 @@ describe('Overlay', () => {
|
||||
amount: '100',
|
||||
contributionDate: '2023-01-15T00:00:00.000Z',
|
||||
memo: 'Test memo',
|
||||
firstName: 'John',
|
||||
lastName: 'Doe',
|
||||
email: 'john.doe@example.com',
|
||||
user: {
|
||||
firstName: 'John',
|
||||
lastName: 'Doe',
|
||||
emailContact: {
|
||||
email: 'john.doe@example.com',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@ -72,7 +72,7 @@ describe('OpenCreationsTable', () => {
|
||||
})
|
||||
|
||||
it('applies correct row class based on status', () => {
|
||||
const rowClass = wrapper.vm.rowClass({ status: 'CONFIRMED' }, 'row')
|
||||
const rowClass = wrapper.vm.rowClass({ contributionStatus: 'CONFIRMED' }, 'row')
|
||||
expect(rowClass).toBe('table-success')
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user