Selaa lähdekoodia

fix multi_promo test

tags/v0.7.2
Jonathan Cobb 5 vuotta sitten
vanhempi
commit
2a87e9c66d
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. +4
    -1
      bubble-server/src/test/resources/models/tests/promo/multi_promo.json

+ 4
- 1
bubble-server/src/test/resources/models/tests/promo/multi_promo.json Näytä tiedosto

@@ -498,6 +498,9 @@
"entity": { "entity": {
"name": "AccountCredit5" "name": "AccountCredit5"
} }
},
"response": {
"store": "referringPromos"
} }
}, },


@@ -716,7 +719,7 @@
{"condition": "json[0].getType().name() === 'payment'"}, {"condition": "json[0].getType().name() === 'payment'"},
{"condition": "json[1].getType().name() === 'credit_applied'"}, {"condition": "json[1].getType().name() === 'credit_applied'"},
{"condition": "_find(referringPaymentMethods, function(p) { return p.getUuid() === json[0].getPaymentMethod() && p.getPaymentMethodType().name() === 'credit' }) !== null"}, {"condition": "_find(referringPaymentMethods, function(p) { return p.getUuid() === json[0].getPaymentMethod() && p.getPaymentMethodType().name() === 'credit' }) !== null"},
{"condition": "_find(referringPaymentMethods, function(p) { return p.getUuid() === json[1].getPaymentMethod() && p.getInfo() === 'AccountCreditPaymentDriver' }) !== null"}
{"condition": "_find(referringPromos, function(p) { return p.getUuid() === json[1].getPromotion(); }) !== null"}
] ]
} }
}, },


Ladataan…
Peruuta
Tallenna