TransactionEntity
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user