From 883adf951b614b5b3c0d3939348ab8fecd2a2de9 Mon Sep 17 00:00:00 2001 From: Ryan Vazquez Date: Tue, 1 Dec 2020 11:08:14 -0500 Subject: [PATCH] return same data for all product insights requests in mock client --- plugins/cost-insights/src/client.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/cost-insights/src/client.ts b/plugins/cost-insights/src/client.ts index f1abee102c..0ba57f76fa 100644 --- a/plugins/cost-insights/src/client.ts +++ b/plugins/cost-insights/src/client.ts @@ -127,17 +127,12 @@ export class ExampleCostInsightsClient implements CostInsightsApi { } async getProductInsights(options: ProductInsightsOptions): Promise { - const projectProductInsights = await this.request( - options, - entityOf(options.product), - ); - const productInsights: Entity = await this.request( options, entityOf(options.product), ); - return options.project ? projectProductInsights : productInsights; + return productInsights; } async getAlerts(group: string): Promise {