diff --git a/packages/cart/test/bench.spec.ts b/packages/cart/test/bench.spec.ts index 4af31424..863f3623 100644 --- a/packages/cart/test/bench.spec.ts +++ b/packages/cart/test/bench.spec.ts @@ -182,7 +182,7 @@ describe('benchmarks', () => { height: undefined, human: {offer: 'Package up to 20kg'}, maxWeight: 20000, - price: new Decimal(12.95), + price: new Decimal(13.6), type: 'package', width: undefined }], diff --git a/packages/cart/test/index.spec.ts b/packages/cart/test/index.spec.ts index 33d4e9d2..1534171c 100644 --- a/packages/cart/test/index.spec.ts +++ b/packages/cart/test/index.spec.ts @@ -322,7 +322,7 @@ describe('Tax calculation', () => { cart.addItems([ { sku: 'cr2-blue', - price: new Decimal('12.95'), // Euro + price: new Decimal('13.6'), // Euro taxType: 'vat_reduced', weight: 210, // grams height: 2.20, // cm @@ -380,13 +380,13 @@ describe('Tax calculation', () => { desc: '+ VAT 19%' }, vat_reduced: { - netPrice: '90.65', + netPrice: '95.2', rate: '1.07', desc: '+ VAT 7%' } }, - totalNet: '131.93', - totalGross: '146.12', + totalNet: '136.48', + totalGross: '150.99', shipment: { price: '20.99', taxType: 'vat_standard', @@ -431,20 +431,20 @@ describe('Tax calculation', () => { assert.deepStrictEqual(JSON.parse(JSON.stringify(r)), { taxes: { vat_standard: - { - netPrice: '20.29', - rate: '1', - desc: 'VAT Free' - }, + { + netPrice: '20.29', + rate: '1', + desc: 'VAT Free' + }, vat_reduced: - { - netPrice: '90.65', - rate: '1', - desc: 'VAT Free' - } + { + netPrice: '95.2', + rate: '1', + desc: 'VAT Free' + } }, - totalNet: '110.94', // 123,14 - 13,20 for shipping - totalGross: '110.94', // VAT Free + totalNet: '115.49', + totalGross: '115.49', // VAT Free }); }); });