diff --git a/src/components/CombinationCard/tests/CombinationCard.test.tsx b/src/components/CombinationCard/tests/CombinationCard.test.tsx index e8db3d93..0e321a1f 100644 --- a/src/components/CombinationCard/tests/CombinationCard.test.tsx +++ b/src/components/CombinationCard/tests/CombinationCard.test.tsx @@ -116,28 +116,28 @@ describe('', () => { }); it.each` - discountClass | expectedChoiceOptions - ${DiscountClass.Product} | ${[mockProductOption, mockOrderOption, mockShippingOption]} - ${DiscountClass.Order} | ${[mockProductOption, mockOrderOption, mockShippingOption]} - ${DiscountClass.Shipping} | ${[mockProductOption, mockOrderOption]} -`( - 'renders choices for $discountClass discount', - ({discountClass, expectedChoiceOptions}) => { - const combinationCard = mountWithApp( - , - ); + discountClass | expectedChoiceOptions + ${DiscountClass.Product} | ${[mockProductOption, mockOrderOption, mockShippingOption]} + ${DiscountClass.Order} | ${[mockProductOption, mockOrderOption, mockShippingOption]} + ${DiscountClass.Shipping} | ${[mockProductOption, mockOrderOption]} + `( + 'renders choices for $discountClass discount', + ({discountClass, expectedChoiceOptions}) => { + const combinationCard = mountWithApp( + , + ); - expect(combinationCard).toContainReactComponent(ChoiceList, { - choices: expectedChoiceOptions.map( - (choice: {label: string; value: DiscountClass}) => ({ - value: choice.value, - label: choice.label, - renderChildren: expect.any(Function), - }), - ), - }); - }, -); + expect(combinationCard).toContainReactComponent(ChoiceList, { + choices: expectedChoiceOptions.map( + (choice: {label: string; value: DiscountClass}) => ({ + value: choice.value, + label: choice.label, + renderChildren: expect.any(Function), + }), + ), + }); + }, + ); it('renders a default label when the discountDescriptor has a blank value', () => { const combinationCard = mountWithApp(