Update booking breakdown test

Update line items in test to match those returned from the API.
This commit is contained in:
Hannu Lyytikainen 2019-04-04 14:41:11 +03:00
parent 07f4ad2b3c
commit 1fbe92f7e6

View file

@ -159,17 +159,17 @@ describe('BookingBreakdown', () => {
{
code: 'line-item/provider-commission',
includeFor: ['provider'],
quantity: new Decimal(1),
percentage: new Decimal(-10),
lineTotal: new Money(-200, 'USD'),
unitPrice: new Money(-200, 'USD'),
unitPrice: new Money(2000, 'USD'),
reversal: false,
},
{
code: 'line-item/provider-commission',
includeFor: ['provider'],
quantity: new Decimal(-1),
percentage: new Decimal(10),
lineTotal: new Money(200, 'USD'),
unitPrice: new Money(-200, 'USD'),
unitPrice: new Money(2000, 'USD'),
reversal: true,
},
],