From 9b6914a1e8903449ca211efd9c76f94c875916f9 Mon Sep 17 00:00:00 2001 From: Roberto Aranda Date: Wed, 15 Jan 2025 14:43:19 +0100 Subject: [PATCH] Fix test in PluginRowFormatter --- .../plugin-management-v2/test/plugin-row-formatter.test.tsx | 4 +++- .../plugins/plugin-management-v2/test/utils/constants.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/my-sites/plugins/plugin-management-v2/test/plugin-row-formatter.test.tsx b/client/my-sites/plugins/plugin-management-v2/test/plugin-row-formatter.test.tsx index 7dcd99ae9f0b76..349886510e7a90 100644 --- a/client/my-sites/plugins/plugin-management-v2/test/plugin-row-formatter.test.tsx +++ b/client/my-sites/plugins/plugin-management-v2/test/plugin-row-formatter.test.tsx @@ -34,7 +34,9 @@ const initialReduxState = { }, }, productsList: { - items: {}, + items: { + [ paidPlugin.slug ]: paidPlugin, + }, }, marketplace: { billingInterval: { diff --git a/client/my-sites/plugins/plugin-management-v2/test/utils/constants.ts b/client/my-sites/plugins/plugin-management-v2/test/utils/constants.ts index b7d856afa1eeed..5b972be7c47646 100644 --- a/client/my-sites/plugins/plugin-management-v2/test/utils/constants.ts +++ b/client/my-sites/plugins/plugin-management-v2/test/utils/constants.ts @@ -64,6 +64,7 @@ const paidPlugin = { id: paidPluginId, slug: paidPluginId, isMarketplaceProduct: true, + product_type: 'marketplace', }; export { site, plugin, paidPlugin };