Fix missing tx prop

This commit is contained in:
Kimmo Puputti 2017-10-26 11:42:18 +03:00
parent 5942d11cb6
commit 985be6ef7b
2 changed files with 3 additions and 1 deletions

View file

@ -49,6 +49,7 @@ const estimatedNightlyTransaction = (bookingStart, bookingEnd, unitPrice) => {
unitPrice: unitPrice,
quantity: new Decimal(nightCount),
lineTotal: totalPrice,
reversal: false,
},
],
},

View file

@ -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,
},
]);
});