Skip to content

Commit

Permalink
chore(test-data): deactivate goodstore discount presets (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaikamat authored Oct 10, 2023
1 parent a54a5d3 commit f66b4e6
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 18 deletions.
7 changes: 7 additions & 0 deletions .changeset/tiny-dragons-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@commercetools-test-data/product-discount': patch
'@commercetools-test-data/cart-discount': patch
'@commercetools-test-data/discount-code': patch
---

deactivate goodstore discounts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('with the preset `freeShipping`', () => {
"en-US": "Free shipping when your order is at least 100 GBP",
"fr": undefined,
},
"isActive": true,
"isActive": false,
"key": "FreeShip100",
"name": {
"de": undefined,
Expand Down Expand Up @@ -64,7 +64,7 @@ describe('with the preset `freeShipping`', () => {
"value": "Free shipping when your order is at least 100 GBP",
},
],
"isActive": true,
"isActive": false,
"key": "FreeShip100",
"name": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const freeShipping = (): TCartDiscountDraftBuilder =>
['en-GB']('Free shipping when your order is at least 100 GBP')
)
.stackingMode(stackingMode.Stacking)
.isActive(true)
.isActive(false)
.requiresDiscountCode(false)
.sortOrder('0.22')
.key('FreeShip100');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('with the preset `furnitureBogo`', () => {
"en-US": "Two for one on all furniture items (discount on the cheapest item)",
"fr": undefined,
},
"isActive": true,
"isActive": false,
"key": "FurnitureBOGO",
"name": {
"de": undefined,
Expand Down Expand Up @@ -69,7 +69,7 @@ describe('with the preset `furnitureBogo`', () => {
"value": "Two for one on all furniture items (discount on the cheapest item)",
},
],
"isActive": true,
"isActive": false,
"key": "FurnitureBOGO",
"name": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const furnitureBogo = (): TCartDiscountDraftBuilder =>
)
)
.stackingMode(stackingMode.Stacking)
.isActive(true)
.isActive(false)
.requiresDiscountCode(true)
.sortOrder('0.15')
.key('FurnitureBOGO');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('with the preset `furnitureBogo`', () => {
"fr": undefined,
},
"groups": [],
"isActive": true,
"isActive": false,
"maxApplications": 1,
"maxApplicationsPerCustomer": 1,
"name": {
Expand Down Expand Up @@ -59,7 +59,7 @@ describe('with the preset `furnitureBogo`', () => {
"custom": undefined,
"description": [],
"groups": [],
"isActive": true,
"isActive": false,
"maxApplications": 1,
"maxApplicationsPerCustomer": 1,
"name": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const furnitureBogo = (cartDiscountId: string): TDiscountCodeDraftBuilder =>
.cartDiscounts([
Reference.random().id(cartDiscountId).typeId('cart-discount'),
])
.isActive(true)
.isActive(false)
.maxApplications(1)
.maxApplicationsPerCustomer(1)
.groups([]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('with the preset `discountBakeware`', () => {
"en-US": "5 EUR Off All Bakeware Items",
"fr": undefined,
},
"isActive": true,
"isActive": false,
"key": "Bakeware5EUROff",
"name": {
"de": undefined,
Expand Down Expand Up @@ -62,7 +62,7 @@ describe('with the preset `discountBakeware`', () => {
"value": "5 EUR Off All Bakeware Items",
},
],
"isActive": true,
"isActive": false,
"key": "Bakeware5EUROff",
"name": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const discountBakeware = (): TProductDiscountDraftBuilder =>
['en-US']('5 EUR Off All Bakeware Items')
['en-GB']('5 EUR Off All Bakeware Items')
)
.isActive(true)
.isActive(false)
.sortOrder('0.5')
.key('Bakeware5EUROff');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('with the preset `discountFurnitureAndDecor`', () => {
"en-US": "10 USD Off All Furniture & Decor",
"fr": undefined,
},
"isActive": true,
"isActive": false,
"key": "FurnitureDecor10USDOff",
"name": {
"de": undefined,
Expand Down Expand Up @@ -62,7 +62,7 @@ describe('with the preset `discountFurnitureAndDecor`', () => {
"value": "10 USD Off All Furniture & Decor",
},
],
"isActive": true,
"isActive": false,
"key": "FurnitureDecor10USDOff",
"name": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const discountFurnitureAndDecor = (): TProductDiscountDraftBuilder =>
['en-US']('10 USD Off All Furniture & Decor')
['en-GB']('10 USD Off All Furniture & Decor')
)
.isActive(true)
.isActive(false)
.sortOrder('0.2')
.key('FurnitureDecor10USDOff');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('with the preset `discountNewArrivals`', () => {
"en-US": "15% Off All New Arrivals",
"fr": undefined,
},
"isActive": true,
"isActive": false,
"key": "NewArrivals15pctOff",
"name": {
"de": undefined,
Expand Down Expand Up @@ -57,7 +57,7 @@ describe('with the preset `discountNewArrivals`', () => {
"value": "15% Off All New Arrivals",
},
],
"isActive": true,
"isActive": false,
"key": "NewArrivals15pctOff",
"name": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const discountNewArrivals = (): TProductDiscountDraftBuilder =>
['en-US']('15% Off All New Arrivals')
['en-GB']('15% Off All New Arrivals')
)
.isActive(true)
.isActive(false)
.sortOrder('0.67')
.key('NewArrivals15pctOff');

Expand Down

0 comments on commit f66b4e6

Please sign in to comment.