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', state: 'PENDING',
}), }),
expect.objectContaining({ expect.objectContaining({
amount: '200', amount: '100',
firstName: 'Bibi', firstName: 'Peter',
id: expect.any(Number), id: expect.any(Number),
lastName: 'Bloxberg', lastName: 'Lustig',
memo: 'Aktives Grundeinkommen', memo: 'Test env contribution',
messagesCount: 0, messagesCount: 0,
state: 'PENDING', state: 'PENDING',
}), }),

View File

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