fix(backend): possible flaky test

This commit is contained in:
Moriz Wahl 2023-02-28 19:53:35 +01:00
parent 252ac67740
commit be048be032
2 changed files with 5 additions and 4 deletions

View File

@ -2888,11 +2888,11 @@ describe('ContributionResolver', () => {
state: 'PENDING',
}),
expect.objectContaining({
amount: '200',
firstName: 'Bibi',
amount: '100',
firstName: 'Peter',
id: expect.any(Number),
lastName: 'Bloxberg',
memo: 'Aktives Grundeinkommen',
lastName: 'Lustig',
memo: 'Test env contribution',
messagesCount: 0,
state: 'PENDING',
}),

View File

@ -17,6 +17,7 @@ export const findContributions = async (
withDeleted: withDeleted,
order: {
createdAt: order,
id: order,
},
relations: ['user'],
skip: (currentPage - 1) * pageSize,