Skip to content

Commit f3bad34

Browse files
committed
#17744 Adding others isVirtual mock and annotations
1 parent a862620 commit f3bad34

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Braintree/frontend/js/view/payment/method-renderer/cc-form.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ define([
1919
billingAddress: ko.observable(),
2020
shippingAddress: ko.observable(),
2121
paymentMethod: ko.observable(),
22-
totals: ko.observable({})
22+
totals: ko.observable({}),
23+
24+
/** Stub */
25+
isVirtual: function () {
26+
return false;
27+
}
2328
},
2429
'Magento_Braintree/js/view/payment/validator-handler': jasmine.createSpyObj(
2530
'validator-handler',

dev/tests/js/jasmine/tests/app/code/Magento/Braintree/frontend/js/view/payment/method-renderer/paypal.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ define([
2525
totals: ko.observable({
2626
'base_grand_total': 0
2727
}),
28+
29+
/** Stub */
2830
isVirtual: function () {
2931
return false;
3032
}

dev/tests/js/jasmine/tests/app/code/Magento/Paypal/frontend/js/view/payment/method-renderer/paypal-express-abstract.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ define([
2828
billingAddress: ko.observable(),
2929
shippingAddress: ko.observable(),
3030
paymentMethod: ko.observable(),
31-
totals: ko.observable({})
31+
totals: ko.observable({}),
3232

33+
/** Stub */
34+
isVirtual: function () {
35+
return false;
36+
}
3337
},
3438
'Magento_Checkout/js/action/set-payment-information': setPaymentMock,
3539
'Magento_Checkout/js/model/payment/additional-validators': {

0 commit comments

Comments
 (0)