@@ -262,7 +262,7 @@ describe("Promotions", () => {
262262 test ( "placed order get the correct values" , async ( ) => {
263263 const orderId = decodeOpaqueIdForNamespace ( "reaction/order" ) ( placedOrderId ) ;
264264 const newOrder = await testApp . collections . Orders . findOne ( { _id : orderId } ) ;
265- expect ( newOrder . shipping [ 0 ] . invoice . total ) . toEqual ( 112.44 ) ;
265+ expect ( newOrder . shipping [ 0 ] . invoice . total ) . toEqual ( 139.94 ) ;
266266 expect ( newOrder . shipping [ 0 ] . invoice . discounts ) . toEqual ( 10 ) ;
267267 expect ( newOrder . shipping [ 0 ] . invoice . subtotal ) . toEqual ( 119.94 ) ;
268268
@@ -299,7 +299,7 @@ describe("Promotions", () => {
299299 const orderId = decodeOpaqueIdForNamespace ( "reaction/order" ) ( placedOrderId ) ;
300300 const newOrder = await testApp . collections . Orders . findOne ( { _id : orderId } ) ;
301301
302- expect ( newOrder . shipping [ 0 ] . invoice . total ) . toEqual ( 110.45 ) ;
302+ expect ( newOrder . shipping [ 0 ] . invoice . total ) . toEqual ( 137.95 ) ;
303303 expect ( newOrder . shipping [ 0 ] . invoice . discounts ) . toEqual ( 11.99 ) ;
304304 expect ( newOrder . shipping [ 0 ] . invoice . subtotal ) . toEqual ( 119.94 ) ;
305305
@@ -656,13 +656,13 @@ describe("Promotions", () => {
656656 test ( "placed order get the correct values" , async ( ) => {
657657 const orderId = decodeOpaqueIdForNamespace ( "reaction/order" ) ( placedOrderId ) ;
658658 const newOrder = await testApp . collections . Orders . findOne ( { _id : orderId } ) ;
659- expect ( newOrder . shipping [ 0 ] . invoice . total ) . toEqual ( 121 .94) ;
659+ expect ( newOrder . shipping [ 0 ] . invoice . total ) . toEqual ( 144 .94) ;
660660 expect ( newOrder . shipping [ 0 ] . invoice . discounts ) . toEqual ( 0 ) ;
661661 expect ( newOrder . shipping [ 0 ] . invoice . subtotal ) . toEqual ( 119.94 ) ;
662- expect ( newOrder . shipping [ 0 ] . invoice . shipping ) . toEqual ( 2 ) ;
663- expect ( newOrder . shipping [ 0 ] . shipmentMethod . discount ) . toEqual ( 0. 5) ;
664- expect ( newOrder . shipping [ 0 ] . shipmentMethod . rate ) . toEqual ( 0. 5) ;
665- expect ( newOrder . shipping [ 0 ] . shipmentMethod . handling ) . toEqual ( 1.5 ) ;
662+ expect ( newOrder . shipping [ 0 ] . invoice . shipping ) . toEqual ( 25 ) ;
663+ expect ( newOrder . shipping [ 0 ] . shipmentMethod . discount ) . toEqual ( 5 ) ;
664+ expect ( newOrder . shipping [ 0 ] . shipmentMethod . rate ) . toEqual ( 5 ) ;
665+ expect ( newOrder . shipping [ 0 ] . shipmentMethod . handling ) . toEqual ( 20 ) ;
666666
667667 expect ( newOrder . shipping [ 0 ] . items [ 0 ] . quantity ) . toEqual ( 6 ) ;
668668
@@ -709,13 +709,13 @@ describe("Promotions", () => {
709709 test ( "placed order get the correct values" , async ( ) => {
710710 const orderId = decodeOpaqueIdForNamespace ( "reaction/order" ) ( placedOrderId ) ;
711711 const newOrder = await testApp . collections . Orders . findOne ( { _id : orderId } ) ;
712- expect ( newOrder . shipping [ 0 ] . invoice . total ) . toEqual ( 121.89 ) ;
712+ expect ( newOrder . shipping [ 0 ] . invoice . total ) . toEqual ( 144.44 ) ;
713713 expect ( newOrder . shipping [ 0 ] . invoice . discounts ) . toEqual ( 0 ) ;
714714 expect ( newOrder . shipping [ 0 ] . invoice . subtotal ) . toEqual ( 119.94 ) ;
715- expect ( newOrder . shipping [ 0 ] . invoice . shipping ) . toEqual ( 1.95 ) ;
716- expect ( newOrder . shipping [ 0 ] . shipmentMethod . discount ) . toEqual ( 0.55 ) ;
717- expect ( newOrder . shipping [ 0 ] . shipmentMethod . rate ) . toEqual ( 0.45 ) ;
718- expect ( newOrder . shipping [ 0 ] . shipmentMethod . handling ) . toEqual ( 1.5 ) ;
715+ expect ( newOrder . shipping [ 0 ] . invoice . shipping ) . toEqual ( 24.5 ) ;
716+ expect ( newOrder . shipping [ 0 ] . shipmentMethod . discount ) . toEqual ( 5.5 ) ;
717+ expect ( newOrder . shipping [ 0 ] . shipmentMethod . rate ) . toEqual ( 4.5 ) ;
718+ expect ( newOrder . shipping [ 0 ] . shipmentMethod . handling ) . toEqual ( 20 ) ;
719719
720720 expect ( newOrder . appliedPromotions ) . toHaveLength ( 2 ) ;
721721 expect ( newOrder . discounts ) . toHaveLength ( 2 ) ;
0 commit comments