fix: harden dependencies and downstream delivery
This commit is contained in:
@@ -105,7 +105,12 @@ describe('TenantsService', () => {
|
||||
}));
|
||||
expect(prisma.accountTransaction.groupBy).toHaveBeenCalledWith(expect.objectContaining({
|
||||
by: ['tenantId'],
|
||||
where: expect.objectContaining({ transactionType: 'refunded' }),
|
||||
where: expect.objectContaining({
|
||||
OR: [
|
||||
{ transactionType: 'refunded' },
|
||||
{ transactionType: 'released', relatedType: 'sms_message_record' },
|
||||
],
|
||||
}),
|
||||
_sum: { amountCents: true },
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user