Merge pull request #2761 from gradido/fix-possible-flaky-test

fix(backend): possible flaky test
This commit is contained in:
Moriz Wahl 2023-03-01 09:17:29 +01:00 committed by GitHub
commit 63fda2fe65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,