return same data for all product insights requests in mock client

This commit is contained in:
Ryan Vazquez
2020-12-01 11:08:14 -05:00
parent c8e5a78443
commit 883adf951b
+1 -6
View File
@@ -127,17 +127,12 @@ export class ExampleCostInsightsClient implements CostInsightsApi {
}
async getProductInsights(options: ProductInsightsOptions): Promise<Entity> {
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<Alert[]> {