mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Fix missing tx prop
This commit is contained in:
parent
5942d11cb6
commit
985be6ef7b
2 changed files with 3 additions and 1 deletions
|
|
@ -49,6 +49,7 @@ const estimatedNightlyTransaction = (bookingStart, bookingEnd, unitPrice) => {
|
|||
unitPrice: unitPrice,
|
||||
quantity: new Decimal(nightCount),
|
||||
lineTotal: totalPrice,
|
||||
reversal: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ describe('BookingDatesForm', () => {
|
|||
);
|
||||
expect(tree).toMatchSnapshot();
|
||||
});
|
||||
it('matches snapshot with selected dates', () => {
|
||||
it('matches selected dates', () => {
|
||||
const price = new Money(1099, 'USD');
|
||||
const startDate = new Date(Date.UTC(2017, 3, 14));
|
||||
const endDate = new Date(Date.UTC(2017, 3, 16));
|
||||
|
|
@ -58,6 +58,7 @@ describe('BookingDatesForm', () => {
|
|||
unitPrice: price,
|
||||
quantity: new Decimal(2),
|
||||
lineTotal: new Money(2198, 'USD'),
|
||||
reversal: false,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue