From 1fbe92f7e6765079ffe1f784c0ad91cec92a085c Mon Sep 17 00:00:00 2001 From: Hannu Lyytikainen Date: Thu, 4 Apr 2019 14:41:11 +0300 Subject: [PATCH] Update booking breakdown test Update line items in test to match those returned from the API. --- src/components/BookingBreakdown/BookingBreakdown.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/BookingBreakdown/BookingBreakdown.test.js b/src/components/BookingBreakdown/BookingBreakdown.test.js index f6736293..90a95372 100644 --- a/src/components/BookingBreakdown/BookingBreakdown.test.js +++ b/src/components/BookingBreakdown/BookingBreakdown.test.js @@ -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, }, ],