promotion.e2e-spec.ts.snap 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
  2. exports[`Promotion resolver > adjustmentOperations 1`] = `
  3. [
  4. {
  5. "args": [
  6. {
  7. "name": "facetValueIds",
  8. "type": "ID",
  9. "ui": null,
  10. },
  11. ],
  12. "code": "promo_action",
  13. "description": "description for promo_action",
  14. },
  15. ]
  16. `;
  17. exports[`Promotion resolver > adjustmentOperations 2`] = `
  18. [
  19. {
  20. "args": [
  21. {
  22. "name": "arg",
  23. "type": "int",
  24. "ui": null,
  25. },
  26. ],
  27. "code": "promo_condition",
  28. "description": "description for promo_condition",
  29. },
  30. {
  31. "args": [
  32. {
  33. "name": "arg",
  34. "type": "int",
  35. "ui": null,
  36. },
  37. ],
  38. "code": "promo_condition2",
  39. "description": "description for promo_condition2",
  40. },
  41. ]
  42. `;
  43. exports[`Promotion resolver > createPromotion 1`] = `
  44. {
  45. "actions": [
  46. {
  47. "args": [
  48. {
  49. "name": "facetValueIds",
  50. "value": "["T_1"]",
  51. },
  52. ],
  53. "code": "promo_action",
  54. },
  55. ],
  56. "conditions": [
  57. {
  58. "args": [
  59. {
  60. "name": "arg",
  61. "value": "500",
  62. },
  63. ],
  64. "code": "promo_condition",
  65. },
  66. ],
  67. "couponCode": "TEST123",
  68. "enabled": true,
  69. "endsAt": "2019-12-01T00:00:00.000Z",
  70. "name": "test promotion",
  71. "startsAt": "2019-10-30T00:00:00.000Z",
  72. }
  73. `;
  74. exports[`Promotion resolver > updatePromotion 1`] = `
  75. {
  76. "actions": [
  77. {
  78. "args": [
  79. {
  80. "name": "facetValueIds",
  81. "value": "["T_1"]",
  82. },
  83. ],
  84. "code": "promo_action",
  85. },
  86. ],
  87. "conditions": [
  88. {
  89. "args": [
  90. {
  91. "name": "arg",
  92. "value": "90",
  93. },
  94. ],
  95. "code": "promo_condition",
  96. },
  97. {
  98. "args": [
  99. {
  100. "name": "arg",
  101. "value": "10",
  102. },
  103. ],
  104. "code": "promo_condition2",
  105. },
  106. ],
  107. "couponCode": "TEST1235",
  108. "enabled": true,
  109. "endsAt": "2019-06-01T22:00:00.000Z",
  110. "name": "test promotion",
  111. "startsAt": "2019-05-30T22:00:00.000Z",
  112. }
  113. `;