From 6be29d900c0eb2223bed4ab0d5d9171f5bc78c52 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 18 Feb 2022 21:29:05 +0530 Subject: [PATCH] Added id to plan section tests to avoid key warnings --- ghost/portal/src/components/common/PlansSection.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/portal/src/components/common/PlansSection.test.js b/ghost/portal/src/components/common/PlansSection.test.js index e291f4a651..2fef536227 100644 --- a/ghost/portal/src/components/common/PlansSection.test.js +++ b/ghost/portal/src/components/common/PlansSection.test.js @@ -6,9 +6,9 @@ const setup = (overrides = {}) => { const mockOnPlanSelectFn = jest.fn(); const props = { plans: [ - {type: 'free', price: 'Decide later', currency_symbol: '$', name: 'Free'}, - {type: 'month', price: 12, currency_symbol: '$', name: 'Monthly'}, - {type: 'year', price: 110, currency_symbol: '$', name: 'Yearly'} + {type: 'free', price: 'Decide later', currency_symbol: '$', name: 'Free', id: 'free'}, + {type: 'month', price: 12, currency_symbol: '$', name: 'Monthly', id: 'monthly'}, + {type: 'year', price: 110, currency_symbol: '$', name: 'Yearly', id: 'yearly'} ], selectedPlan: 'Monthly', onPlanSelect: mockOnPlanSelectFn