From 1b198a05795ff8ff4827916a69036fd8e37fb0f9 Mon Sep 17 00:00:00 2001 From: The Nguyen <6950941+treoden@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:40:28 +0700 Subject: [PATCH] Fixing coupon condition in unit testing data --- packages/evershop/src/modules/checkout/tests/coupons.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/evershop/src/modules/checkout/tests/coupons.js b/packages/evershop/src/modules/checkout/tests/coupons.js index 23b171bff..3a4cfa843 100644 --- a/packages/evershop/src/modules/checkout/tests/coupons.js +++ b/packages/evershop/src/modules/checkout/tests/coupons.js @@ -11,7 +11,7 @@ const coupons = [ used_time: 0, target_products: [], condition: { order_qty: '', order_total: '' }, - user_condition: { email: '', group: 999, purchased: '' }, + user_condition: { email: '', groups: [''], purchased: '' }, buyx_gety: [ { sku: 'AT46 8703 9964 4659 4364', @@ -47,7 +47,7 @@ const coupons = [ used_time: 0, target_products: [], condition: { order_qty: '', order_total: '' }, - user_condition: { email: '', group: 999, purchased: '' }, + user_condition: { email: '', groups: [''], purchased: '' }, buyx_gety: [], max_uses_time_per_coupon: null, max_uses_time_per_customer: null, @@ -68,7 +68,7 @@ const coupons = [ used_time: 0, target_products: [], condition: { order_qty: '', order_total: '' }, - user_condition: { email: '', group: 999, purchased: '' }, + user_condition: { email: '', groups: [''], purchased: '' }, buyx_gety: [], max_uses_time_per_coupon: null, max_uses_time_per_customer: null,