0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Added id to plan section tests to avoid key warnings

This commit is contained in:
Rishabh 2022-02-18 21:29:05 +05:30
parent 8481962df8
commit 6be29d900c

View file

@ -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