TransactionEntity

This commit is contained in:
2024-11-13 14:46:28 +01:00
parent c2bf40c1a4
commit c609f1ecc6
40 changed files with 2272 additions and 10 deletions
@@ -100,7 +100,7 @@ describe('Service Tests', () => {
});
it('should partial update a Charge', async () => {
const patchObject = { chargeDate: dayjs(currentDate).format(DATE_FORMAT), type: 'BBBBBB', ...new Charge() };
const patchObject = { amount: 1, ...new Charge() };
const returnedFromService = Object.assign(patchObject, elemDefault);
const expected = { chargeDate: currentDate, ...returnedFromService };