
* remove classes in shipping & products utils * remove classes * add tests plans * add const * tests for shipping methods * test for shipping * test for shipping * tests for shipping * install eslint-plugin-chai-friendly * update stories * add missing imports
6 lines
216 B
JavaScript
6 lines
216 B
JavaScript
export function isShippingAvailableInCheckout(checkout, shippingName) {
|
|
const shipping = checkout.availableShippingMethods.find(
|
|
element => element.name === shippingName
|
|
);
|
|
return shipping !== undefined;
|
|
}
|